code: def main() -> None:
      """Install deps in requirements.frozen.txt."""
      extra_index = None
      torch_reqs = []
      if os.path.exists("requirements.frozen.txt"):
          with open("requirements.frozen.txt") as f:
              print("Installing frozen dependencies...")
              reqs = []
              for req in f:
                  if (
                      len(ONLY_INCLUDE) == 0
                      or req in ONLY_INCLUDE
                      or req.split("=")[0].lower() in ONLY_INCLUDE
                  ):
                      # can't pip install wandb==0.*.*.dev1 through pip. Lets just install wandb for now
                      if req.startswith("wandb==") and "dev1" in req:
                          req = "wandb"
                      match = re.match(
                          TORCH_DEP_REGEX,
                          req,
                      )
                      if match:
                          variant = match.group(2)
                          if variant:
                              extra_index = f"https://download.pytorch.org/whl/{variant[1:]}"
                          torch_reqs.append(
                              req.strip().replace(" ", "")
                          )
                      else:
                          reqs.append(req.strip().replace(" ", ""))
                  else:
                      print(
                          f"Ignoring requirement: {req} from frozen requirements"
                      )
              failed = install_deps(reqs, opts=OPTS) or set()
              with open("_wandb_bootstrap_errors.json", "w") as f:
                  f.write(json.dumps({"pip": list(failed)}))
              if len(failed) > 0:
                  sys.stderr.write(
                      FAILED_PACKAGES_PREFIX
                      + ",".join(failed)
                      + FAILED_PACKAGES_POSTFIX
                  )
                  sys.stderr.flush()
          install_deps(torch_reqs, extra_index=extra_index)
      else:
          print("No frozen requirements found")
  
file_path: wandb/wandb/sdk/launch/builder/templates/_wandb_bootstrap.py
imports: import json
  import os
  import re
  import subprocess
  import sys
  from typing import List, Optional, Set
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types