code: def _make_dummy_game_info(players, interface_formats):
      """Makes dummy game infos from player and interface format data."""
      player_info = []
      for i, p in enumerate(players, start=1):
          if isinstance(p, sc2_env.Agent):
              player_info.append(
                  sc2api_pb2.PlayerInfo(
                      player_id=i,
                      type=sc2api_pb2.PlayerType.Participant,
                      race_requested=p.race[0],
                      player_name=p.name,
                  )
              )
          else:
              player_info.append(
                  sc2api_pb2.PlayerInfo(
                      player_id=i,
                      type=sc2api_pb2.PlayerType.Computer,
                      race_requested=p.race[0],
                      difficulty=p.difficulty,
                      ai_build=p.build[0],
                      player_name=p.difficulty.name,
                  )
              )
  
      game_infos = []
      for _, interface_format in zip(players, interface_formats):
          game_info = sc2api_pb2.ResponseGameInfo(
              player_info=player_info,
              start_raw=raw_pb2.StartRaw(
                  map_size=common_pb2.Size2DI(
                      x=DUMMY_MAP_SIZE, y=DUMMY_MAP_SIZE
                  )
              ),
          )
  
          if isinstance(interface_format, sc2api_pb2.InterfaceOptions):
              game_info.options.CopyFrom(interface_format)
          else:
              if interface_format.feature_dimensions is not None:
                  fd = interface_format.feature_dimensions
                  game_info.options.feature_layer.resolution.x = (
                      fd.screen.x
                  )
                  game_info.options.feature_layer.resolution.y = (
                      fd.screen.y
                  )
                  game_info.options.feature_layer.minimap_resolution.x = (
                      fd.minimap.x
                  )
                  game_info.options.feature_layer.minimap_resolution.y = (
                      fd.minimap.y
                  )
                  game_info.options.feature_layer.width = (
                      interface_format.camera_width_world_units
                  )
              if interface_format.rgb_dimensions is not None:
                  rd = interface_format.rgb_dimensions
                  game_info.options.render.resolution.x = rd.screen.x
                  game_info.options.render.resolution.y = rd.screen.y
                  game_info.options.render.minimap_resolution.x = (
                      rd.minimap.x
                  )
                  game_info.options.render.minimap_resolution.y = (
                      rd.minimap.y
                  )
                  game_info.options.render.width = (
                      interface_format.camera_width_world_units
                  )
  
          game_infos.append(game_info)
  
      return game_infos
  
imports: import numpy
  from pysc2.env import environment
  from pysc2.env import sc2_env
  from pysc2.lib import features
  from pysc2.lib import units
  from pysc2.tests import dummy_observation
  from s2clientprotocol import common_pb2
  from s2clientprotocol import raw_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _make_dummy_game_info(players, interface_formats) and returns: game_infos