[envs/registration.py] Fixed import module (#1398)
[envs/registration.py] Fixed import module (#1398)

* [envs/registration.py] Fixed warnings import

* [envs/registration.py] Fixed ModuleNotFounderror

* [envs/registration.py] Modified ModuleNotFoundError to ImportError for python2.7

Farama-Foundation/Gymnasium,Farama-Foundation/Gymnasium