code: def register_testing_envs():
      """Registers testing environments."""
      namespace = "MyAwesomeNamespace"
      versioned_name = "MyAwesomeVersionedEnv"
      unversioned_name = "MyAwesomeUnversionedEnv"
      versions = [1, 3, 5]
      for version in versions:
          env_id = f"{namespace}/{versioned_name}-v{version}"
          gym.register(
              id=env_id,
              entry_point="tests.envs.utils_envs:ArgumentEnv",
              kwargs={
                  "arg1": "arg1",
                  "arg2": "arg2",
                  "arg3": "arg3",
              },
          )
      gym.register(
          id=f"{namespace}/{unversioned_name}",
          entry_point="tests.env.utils_envs:ArgumentEnv",
          kwargs={
              "arg1": "arg1",
              "arg2": "arg2",
              "arg3": "arg3",
          },
      )
  
      yield
  
      for version in versions:
          env_id = f"{namespace}/{versioned_name}-v{version}"
          del gym.envs.registry[env_id]
      del gym.envs.registry[f"{namespace}/{unversioned_name}"]
  
file_path: gym/tests/envs/test_register.py
imports: import re
  from typing import Optional
  import pytest
  import gym
label_desc: Use image node_id 1 for calling a global function with example usage: register_testing_envs() without return types