code: def get_test_environment():
      global _test_env
      if _test_env:
          return _test_env
  
      _test_env = TestEnvironment(**DEFAULT_ENV)
      return _test_env
  
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 1 for calling a global function with example usage: get_test_environment() and returns: _test_env, _test_env