code: def get_test_env_var(key: str, default: Optional[str] = None):
      test_env = get_test_environment()
      return test_env.get(key, default)
  
file_path: ray/release/ray_release/template.py
imports: import copy
  import datetime
  import os
  from typing import Optional, Dict, TYPE_CHECKING
  import jinja2
  import yaml
  from ray_release.bazel import bazel_runfile
  from ray_release.config import get_test_cloud_id
  from ray_release.exception import ReleaseTestConfigError
label_desc: Use image node_id 3 for calling a global function with example usage: get_test_env_var(key, default) and returns: test_env