code: def get_data():
      """Get the game's static data from an actual game."""
      run_config = run_configs.get()
  
      with run_config.start(want_rgb=False) as controller:
          m = maps.get("Sequencer")  # Arbitrary ladder map.
          create = sc_pb.RequestCreateGame(
              local_map=sc_pb.LocalMap(
                  map_path=m.path, map_data=m.data(run_config)
              )
          )
          create.player_setup.add(type=sc_pb.Participant)
          create.player_setup.add(
              type=sc_pb.Computer,
              race=sc_common.Random,
              difficulty=sc_pb.VeryEasy,
          )
          join = sc_pb.RequestJoinGame(
              race=sc_common.Random,
              options=sc_pb.InterfaceOptions(raw=True),
          )
  
          controller.create_game(create)
          controller.join_game(join)
          return controller.data_raw()
  
file_path: pysc2/pysc2/bin/gen_data.py
imports: import collections
  from absl import app
  from pysc2 import maps
  from pysc2 import run_configs
  from pysc2.lib import static_data
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: get_data() and returns: controller