class_docstr: Tests for garage.envs.multi_env_wrapper
class_docstr_tok: ["Tests","for","garage.envs.multi_env_wrapper"]
docstr: test one hot representation of observation space
docstr_tok: ["test","one","hot","representation","of","observation","space"]
code: def test_one_hot_observation_space(self):
      """test one hot representation of observation space"""
      envs = ["CartPole-v0", "CartPole-v1"]
      mt_env = self._init_multi_env_wrapper(envs)
      cartpole = GymEnv("CartPole-v0")
      cartpole_lb, cartpole_ub = cartpole.observation_space.bounds
      obs_space = akro.Box(
          np.concatenate([cartpole_lb, np.zeros(2)]),
          np.concatenate([cartpole_ub, np.ones(2)]),
      )
      assert mt_env.observation_space.shape == obs_space.shape
      assert (
          mt_env.observation_space.bounds[0] == obs_space.bounds[0]
      ).all()
      assert (
          mt_env.observation_space.bounds[1] == obs_space.bounds[1]
      ).all()
  
file_path: garage/tests/garage/envs/test_multi_env_wrapper.py
imports: import akro
  import numpy
  import pytest
  from garage.envs import GymEnv
  from garage.envs.multi_env_wrapper import MultiEnvWrapper, round_robin_strategy, uniform_random_strategy
label_desc: Use image node_id 7 for calling the TestMultiEnvWrapper obj's underlying member method code with example usage: obj.test_one_hot_observation_space() without return types