code: def test_vector_make_disable_env_checker():
      # As asynchronous environment are inaccessible, synchronous vector must be used
      env = gym.vector.make(
          "CartPole-v1", num_envs=1, asynchronous=False
      )
      assert isinstance(env, SyncVectorEnv)
      assert has_wrapper(env.envs[0], PassiveEnvChecker)
      env.close()
  
      env = gym.vector.make(
          "CartPole-v1", num_envs=5, asynchronous=False
      )
      assert isinstance(env, SyncVectorEnv)
      assert has_wrapper(env.envs[0], PassiveEnvChecker)
      assert all(
          has_wrapper(env.envs[i], PassiveEnvChecker) is False
          for i in [1, 2, 3, 4]
      )
      env.close()
  
      env = gym.vector.make(
          "CartPole-v1",
          num_envs=3,
          asynchronous=False,
          disable_env_checker=True,
      )
      assert isinstance(env, SyncVectorEnv)
      assert all(
          has_wrapper(sub_env, PassiveEnvChecker) is False
          for sub_env in env.envs
      )
      env.close()
  
file_path: gym/tests/vector/test_vector_make.py
imports: import pytest
  import gym
  from gym.vector import AsyncVectorEnv, SyncVectorEnv
  from gym.wrappers import OrderEnforcing, TimeLimit, TransformObservation
  from gym.wrappers.env_checker import PassiveEnvChecker
  from tests.wrappers.utils import has_wrapper
label_desc: Use image node_id 5 for calling a global function with example usage: test_vector_make_disable_env_checker() without return types