The assertions are hard coded to False (already pre-imported from env var) and unable to set to True if I want it to be enabled, following the docs https://anytree.readthedocs.io/en/latest/tricks/consistencychecks.html
From my experience, if it helps, the only way to set it is through environment variables before importing anytree :) Perhaps the documentation can be updated