code: def _read_replay(name):
      replay_path = resources.GetResourceFilename(
          os.path.join(PATH, name)
      )
      with gfile.Open(replay_path, mode="rb") as f:
          replay_data = f.read()
      return sc2_replay.SC2Replay(replay_data)
  
file_path: pysc2/pysc2/lib/replay/sc2_replay_utils_test.py
imports: import os
  from absl import flags
  from absl.testing import absltest
  from absl.testing import parameterized
  from pysc2.lib.replay import sc2_replay
  from pysc2.lib.replay import sc2_replay_utils
  from pysc2.lib import gfile
  from pysc2.lib import resources
label_desc: Use image node_id 1 for calling a global function with example usage: _read_replay(name) and returns: sc2_replay