class_docstr: Wraps a Gym env into a Maze environment.
  
  **Example**: *env = GymMazeEnv(env="CartPole-v0")*
  
  :param env: The gym environment to wrap or the environment id.
code: def __init__(self, env: Union[str, gym.Env]):
      if not isinstance(env, gym.Env):
          env = gym.make(env)
  
      super().__init__(
          core_env=GymCoreEnv(env),
          action_conversion_dict={0: GymActionConversion(env=env)},
          observation_conversion_dict={
              0: GymObservationConversion(env=env)
          },
      )
  
imports: from copy import copy, deepcopy
  from typing import Tuple, Union, Any, Dict, Optional
  import gym
  import numpy
  from gym.envs.classic_control import CartPoleEnv, MountainCarEnv, Continuous_MountainCarEnv, PendulumEnv, AcrobotEnv
  from gym.wrappers import TimeLimit
  from maze.core.annotations import override
  from maze.core.env.action_conversion import ActionConversionInterface
  from maze.core.env.core_env import CoreEnv
  from maze.core.env.maze_action import MazeActionType
  from maze.core.env.maze_env import MazeEnv
  from maze.core.env.maze_state import MazeStateType
  from maze.core.env.observation_conversion import ObservationConversionInterface
  from maze.core.env.simulated_env_mixin import SimulatedEnvMixin
  from maze.core.env.structured_env import StepKeyType, ActorID
  from maze.core.log_events.step_event_log import StepEventLog
  from maze.core.rendering.renderer import Renderer
label_desc: Use image node_id 1 to create a new GymMazeEnv object from inherited base classes: MazeEnv with example: obj = GymMazeEnv(env)