class_docstr: Tests for garage.envs.multi_env_wrapper
class_docstr_tok: ["Tests","for","garage.envs.multi_env_wrapper"]
docstr: test if active_task remains same between multiple step calls
docstr_tok: ["test","if","active_task","remains","same","between","multiple","step","calls"]
code: def test_task_remains_same_between_multiple_step_calls(self):
      """test if active_task remains same between multiple step calls"""
      envs = ["CartPole-v0", "CartPole-v1"]
      mt_env = self._init_multi_env_wrapper(
          envs, sample_strategy=round_robin_strategy
      )
      mt_env.reset()
      tasks = []
      for _ in envs:
          es = mt_env.step(1)
          tasks.append(es.env_info["task_id"])
  
      assert tasks[0] == 0 and tasks[1] == 0
  
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 11 for calling the TestMultiEnvWrapper obj's underlying member method code with example usage: obj.test_task_remains_same_between_multiple_step_calls() without return types