code: def _enforce_array_obs(observation_space: spaces.Space) -> bool:
      """
      Whether to check that the returned observation is a numpy array
      it is not mandatory for `Dict` and `Tuple` spaces.
      """
      return not isinstance(
          observation_space, (spaces.Dict, spaces.Tuple)
      )
  
file_path: stable-baselines/stable_baselines/common/env_checker.py
imports: import warnings
  from typing import Union
  import gym
  from gym import spaces
  import numpy
  from stable_baselines.common.vec_env import DummyVecEnv, VecCheckNan
label_desc: Use image node_id 1 for calling a global function with example usage: _enforce_array_obs(observation_space) and returns: unknown