class_docstr: Base class for vectorized environments. Runs multiple independent copies of the same environment in parallel.
  
  This is not the same as 1 environment that has multiple subcomponents, but it is many copies of the same base env.
  
  Each observation returned from vectorized environment is a batch of observations for each parallel environment.
  And :meth:`step` is also expected to receive a batch of actions for each parallel environment.
  
  Notes:
      All parallel environments should share the identical observation and action spaces.
      In other words, a vector of multiple different environments is not supported.
docstr: Base class for vectorized environments.
  
  Args:
      num_envs: Number of environments in the vectorized environment.
      observation_space: Observation space of a single environment.
      action_space: Action space of a single environment.
code: def __init__(
      self,
      num_envs: int,
      observation_space: gym.Space,
      action_space: gym.Space,
  ):
      """Base class for vectorized environments.
  
      Args:
          num_envs: Number of environments in the vectorized environment.
          observation_space: Observation space of a single environment.
          action_space: Action space of a single environment.
      """
      self.num_envs = num_envs
      self.is_vector_env = True
      self.observation_space = batch_space(
          observation_space, n=num_envs
      )
      self.action_space = batch_space(action_space, n=num_envs)
  
      self.closed = False
      self.viewer = None
  
      # The observation and action spaces of a single environment are
      # kept in separate properties
      self.single_observation_space = observation_space
      self.single_action_space = action_space
  
imports: from typing import Any, List, Optional, Tuple, Union
  import numpy
  import gym
  from gym.vector.utils.spaces import batch_space
label_desc: Use image node_id 1 to create a new VectorEnv object from inherited base classes: gym with example: obj = VectorEnv(num_envs, observation_space, action_space)