code: def test_multi_player_env(self, agent_interface_format):
      steps = 100
      step_mul = 16
      players = 2
      if not isinstance(agent_interface_format, list):
          agent_interface_format = [agent_interface_format] * players
      with sc2_env.SC2Env(
          map_name="Simple64",
          players=[
              sc2_env.Agent(sc2_env.Race.random, "random"),
              sc2_env.Agent(sc2_env.Race.random, "random"),
          ],
          step_mul=step_mul,
          game_steps_per_episode=steps * step_mul // 2,
          agent_interface_format=agent_interface_format,
      ) as env:
          agents = [
              random_agent.RandomAgent()
              if isinstance(aif, sc2_env.AgentInterfaceFormat)
              else no_op_agent.NoOpAgent()
              for aif in agent_interface_format
          ]
          run_loop.run_loop(agents, env, steps)
  
file_path: pysc2/pysc2/tests/multi_player_env_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from pysc2.agents import no_op_agent
  from pysc2.agents import random_agent
  from pysc2.env import run_loop
  from pysc2.env import sc2_env
  from pysc2.tests import utils
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 for calling the TestMultiplayerEnv obj's underlying member method code with example usage: obj.test_multi_player_env(agent_interface_format) without return types