code: def test_make_disable_env_checker():
      """Tests that `gym.make` disable env checker is applied only when `gym.make(..., disable_env_checker=False)`."""
      spec = deepcopy(gym.spec("CartPole-v1"))
  
      # Test with spec disable env checker
      spec.disable_env_checker = False
      env = gym.make(spec)
      assert has_wrapper(env, PassiveEnvChecker)
      env.close()
  
      # Test with overwritten spec using make disable env checker
      assert spec.disable_env_checker is False
      env = gym.make(spec, disable_env_checker=True)
      assert has_wrapper(env, PassiveEnvChecker) is False
      env.close()
  
      # Test with spec enabled disable env checker
      spec.disable_env_checker = True
      env = gym.make(spec)
      assert has_wrapper(env, PassiveEnvChecker) is False
      env.close()
  
      # Test with overwritten spec using make disable env checker
      assert spec.disable_env_checker is True
      env = gym.make(spec, disable_env_checker=False)
      assert has_wrapper(env, PassiveEnvChecker)
      env.close()
  
imports: import re
  import warnings
  from copy import deepcopy
  import numpy
  import pytest
  import gym
  from gym.envs.classic_control import cartpole
  from gym.wrappers import AutoResetWrapper, HumanRendering, OrderEnforcing, TimeLimit
  from gym.wrappers.env_checker import PassiveEnvChecker
  from tests.envs.test_envs import PASSIVE_CHECK_IGNORE_WARNING
  from tests.envs.utils import all_testing_env_specs
  from tests.envs.utils_envs import ArgumentEnv, RegisterDuringMakeEnv
  from tests.testing_env import GenericTestEnv, old_step_fn
  from tests.wrappers.utils import has_wrapper
label_desc: Use image node_id 5 for calling a global function with example usage: test_make_disable_env_checker() without return types