Write your environment in an existing collection or a new collection. All collections are subfolders of /gym/envs.
Import your environment into the __init__.py file of the collection. This file will be located at /gym/envs/my_collection/__init__.py. Add from gym.envs.my_collection.my_awesome_env import MyEnv to this file.