code: def replay_paths(paths):
      """A generator yielding the full path to the replays under `replay_dir`."""
      for path in paths:
          if path.lower().endswith(".sc2replay"):
              yield path
          else:
              for f in os.listdir(path):
                  if f.lower().endswith(".sc2replay"):
                      yield os.path.join(path, f)
  
file_path: pysc2/pysc2/bin/update_battle_net_cache.py
imports: import binascii
  import os
  import urllib
  from absl import app
  from absl import flags
  import mpyq
  from s2protocol import versions
  from pysc2 import run_configs
label_desc: Use image node_id 3 for calling a global function with example usage: replay_paths(paths) without return types