code: def _replay_info(replay_path):
      """Query a replay for information."""
      if not replay_path.lower().endswith("sc2replay"):
          print("Must be a replay.")
          return
  
      run_config = run_configs.get()
      data = run_config.replay_data(replay_path)
      ver = replay.get_replay_version(data)
      FLAGS.set_default("sc2_version", ver.game_version)
      run_config = run_configs.get()  # In case the version changed.
      print("Launching version:", run_config.version.game_version)
      with run_config.start(want_rgb=False) as controller:
          info = controller.replay_info(data)
      print("-" * 60)
      print(info)
  
file_path: pysc2/pysc2/bin/replay_info.py
imports: import os
  from absl import app
  from absl import flags
  from pysc2 import run_configs
  from pysc2.lib import remote_controller
  from pysc2.lib import replay
  from pysc2.lib import gfile
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _replay_info(replay_path) without return types