code: def test_vector_make_wrappers():
      env = gym.vector.make(
          "CartPole-v1", num_envs=2, asynchronous=False
      )
      assert isinstance(env, SyncVectorEnv)
      assert len(env.envs) == 2
  
      sub_env = env.envs[0]
      assert isinstance(sub_env, gym.Env)
      if sub_env.spec.order_enforce:
          assert has_wrapper(sub_env, OrderEnforcing)
      if sub_env.spec.max_episode_steps is not None:
          assert has_wrapper(sub_env, TimeLimit)
  
      assert all(
          has_wrapper(sub_env, TransformObservation) is False
          for sub_env in env.envs
      )
      env.close()
  
      env = gym.vector.make(
          "CartPole-v1",
          num_envs=2,
          asynchronous=False,
          wrappers=lambda _env: TransformObservation(
              _env, lambda obs: obs * 2
          ),
      )
      # As asynchronous environment are inaccessible, synchronous vector must be used
      assert isinstance(env, SyncVectorEnv)
      assert all(
          has_wrapper(sub_env, TransformObservation)
          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 4 for calling a global function with example usage: test_vector_make_wrappers() without return types