code: def load_instance_types(
      path: Optional[str] = None,
  ) -> Dict[str, Tuple[int, int]]:
      if not path:
          path = bazel_runfile(
              "release/ray_release/buildkite/aws_instance_types.csv",
          )
  
      instance_to_resources = {}
      with open(path, "rt") as fp:
          reader = csv.DictReader(fp)
          for row in reader:
              instance_to_resources[row["instance"]] = (
                  int(row["cpus"]),
                  int(row["gpus"]),
              )
  
      return instance_to_resources
  
file_path: ray/release/ray_release/buildkite/concurrency.py
imports: import csv
  from collections import namedtuple
  from typing import Tuple, Optional, Dict
  from ray_release.bazel import bazel_runfile
  from ray_release.test import Test
  from ray_release.template import load_test_cluster_compute
  from ray_release.logger import logger
label_desc: Use image node_id 1 for calling a global function with example usage: load_instance_types(path) and returns: instance_to_resources