Fix typos in torch/fx/_compatibility.py (#97618)
Fixes #ISSUE_NUMBER
Modify the _compatibility.py file global variable name and modify its test file simultaneously.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97618
Approved by: https://github.com/ezyang