When mdl.nmt.Nmt runs in a clean environment, it raises the below error as seen in the github actions for fairness unit test of Nmt()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/torch/__init__.py", line 1317, in _check_with # Import removed ops with error message about removal ImportError: cannot import name 'expect_true' from 'torch.fx.experimental.symbolic_shapes' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/torch/fx/experimental/symbolic_shapes.py)