code: def _not_contained_error(func_name, _type):
      _error = (
          f"The {_type} collected from {func_name} was not contained within"
          f" your env's {_type} space. Its possible that there was a type"
          f"mismatch (for example {_type}s of np.float32 and a space of"
          f"np.float64 {_type}s), or that one of the sub-{_type}s was"
          f"out of bounds"
      )
      return _error
  
imports: import logging
  import traceback
  from copy import copy
  from typing import TYPE_CHECKING, Optional, Set, Union
  import numpy
  import tree
  from ray.actor import ActorHandle
  from ray.rllib.utils.annotations import DeveloperAPI
  from ray.rllib.utils.error import ERR_MSG_OLD_GYM_API, UnsupportedSpaceException
  from ray.rllib.utils.gym import check_old_gym_env, try_import_gymnasium_and_gym
  from ray.rllib.utils.spaces.space_utils import convert_element_to_space_type, get_base_struct_from_space
  from ray.rllib.utils.typing import EnvType
  from ray.util import log_once
label_desc: Use image node_id 9 for calling a global function with example usage: _not_contained_error(func_name, _type) and returns: _error