code: def try_make_env(env_spec: EnvSpec) -> Optional[gym.Env]:
      """Tries to make the environment showing if it is possible.
  
      Warning the environments have no wrappers, including time limit and order enforcing.
      """
      # To avoid issues with registered environments during testing, we check that the spec entry points are from gym.envs.
      if "gym.envs." in env_spec.entry_point:
          try:
              return env_spec.make(disable_env_checker=True).unwrapped
          except (ImportError, error.DependencyNotInstalled) as e:
              logger.warn(
                  f"Not testing {env_spec.id} due to error: {e}"
              )
      return None
  
imports: from typing import List, Optional
  import numpy
  import gym
  from gym import error, logger
  from gym.envs.registration import EnvSpec
label_desc: Use image node_id 1 for calling a global function with example usage: try_make_env(env_spec) and returns: None, env_spec