"""Loads the code under test.By default the tests import YOUR files from eng-lab/hwe/core/ and read YOURdesign/requirements.toml and logs/tinker.csv. The ENGLAB_IMPL environmentvariable points them at another folder instead, so a second implementationcan be run against the same tests. You never need to set it."""importosimportsysfrompathlibimportPathLAB_DIR=Path(__file__).resolve().parents[1]REPO=LAB_DIR.parents[1]# the eng-lab folderifstr(REPO)notinsys.path:sys.path.insert(0,str(REPO))fromhwe.coreimportload# noqa: E402 (after the path fix above)IMPL=os.environ.get("ENGLAB_IMPL")defartifact(name:str,default:Path)->Path:"""A file the lab asks you to write (requirements, tinker log): yours, or ENGLAB_IMPL's."""returnPath(IMPL)/nameifIMPLelsedefault