code: def get_replay_version(replay_data):
      replay_io = io.BytesIO()
      replay_io.write(replay_data)
      replay_io.seek(0)
      archive = mpyq.MPQArchive(replay_io).extract()
      metadata = json.loads(
          archive[b"replay.gamemetadata.json"].decode("utf-8")
      )
      return run_configs_lib.Version(
          game_version=".".join(
              metadata["GameVersion"].split(".")[:-1]
          ),
          build_version=int(metadata["BaseBuild"][4:]),
          data_version=metadata.get(
              "DataVersion"
          ),  # Only in replays version 4.1+.
          binary=None,
      )
  
imports: import io
  import json
  import mpyq
  from pysc2.run_configs import lib
label_desc: Use image node_id 1 for calling a global function with example usage: get_replay_version(replay_data) and returns: run_configs_lib