code: def _init_global_config(config_file: str):
      global config
      config_content = yaml.safe_load(open(config_file, "rt"))
      config = GlobalConfig(
          byod_ray_ecr=config_content["byod"]["ray_ecr"],
          byod_ray_cr_repo=config_content["byod"]["ray_cr_repo"],
          byod_ray_ml_cr_repo=config_content["byod"]["ray_ml_cr_repo"],
          byod_ecr=config_content["byod"]["byod_ecr"],
          byod_aws_cr=config_content["byod"].get("aws_cr"),
          byod_gcp_cr=config_content["byod"].get("gcp_cr"),
          state_machine_aws_bucket=config_content["state_machine"][
              "aws_bucket"
          ],
          aws2gce_credentials=config_content.get("credentials", {}).get(
              "aws2gce"
          ),
      )
      # setup GCP workload identity federation
      os.environ[
          "GOOGLE_APPLICATION_CREDENTIALS"
      ] = f"/workdir/{config['aws2gce_credentials']}"
  
file_path: ray/release/ray_release/configs/global_config.py
imports: import os
  import yaml
  from typing_extensions import TypedDict
label_desc: Use image node_id 3 for calling a global function with example usage: _init_global_config(config_file) without return types