class_docstr: Tests for garage.envs.multi_env_wrapper
class_docstr_tok: ["Tests","for","garage.envs.multi_env_wrapper"]
docstr: test uniform_random sampling strategy
docstr_tok: ["test","uniform_random","sampling","strategy"]
code: def test_uniform_random_sample_strategy(self):
      """test uniform_random sampling strategy"""
      envs = [
          "CartPole-v0",
          "CartPole-v1",
          "CartPole-v0",
          "CartPole-v1",
      ]
      mt_env = self._init_multi_env_wrapper(
          envs, sample_strategy=uniform_random_strategy
      )
      tasks = []
      for _ in envs:
          mt_env.reset()
          es = mt_env.step(1)
          tasks.append(es.env_info["task_id"])
  
      for task in tasks:
          assert 0 <= task < 4
  
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 10 for calling the TestMultiEnvWrapper obj's underlying member method code with example usage: obj.test_uniform_random_sample_strategy() without return types