code: def test_custom_space_vector_env():
      env = VectorEnv(4, CustomSpace(), CustomSpace())
  
      assert isinstance(env.single_observation_space, CustomSpace)
      assert isinstance(env.observation_space, Tuple)
  
      assert isinstance(env.single_action_space, CustomSpace)
      assert isinstance(env.action_space, Tuple)
  
file_path: gym/tests/vector/test_vector_env.py
imports: from functools import partial
  import numpy
  import pytest
  from gym.spaces import Discrete, Tuple
  from gym.vector.async_vector_env import AsyncVectorEnv
  from gym.vector.sync_vector_env import SyncVectorEnv
  from gym.vector.vector_env import VectorEnv
  from tests.testing_env import GenericTestEnv
  from tests.vector.utils import CustomSpace, make_env
label_desc: Use image node_id 2 for calling a global function with example usage: test_custom_space_vector_env() without return types