code: def test_looks_like_battle_net(path):
      path = path.rstrip("/").rstrip("\\")
      if os.path.basename(path) != "Battle.net":
          raise ValueError(
              "Doesn't look like a Battle.net cache:", path
          )
      if not os.path.isdir(os.path.join(path, "Cache")):
          raise ValueError("Missing a Cache subdirectory:", path)
  
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 2 for calling a global function with example usage: test_looks_like_battle_net(path) without return types