code: def _get_test_yaml(file_name):
      file_path = str(
          Path(__file__).resolve().parent / "test_files" / file_name
      )
      return yaml.safe_load(open(file_path).read())
  
imports: import copy
  import mock
  import sys
  import jsonpatch
  import pytest
  from ray.autoscaler.batching_node_provider import NodeData
  from ray.autoscaler._private.kuberay.node_provider import _worker_group_index, _worker_group_max_replicas, _worker_group_replicas, KubeRayNodeProvider, ScaleRequest
  from ray.autoscaler._private.util import NodeID
  from pathlib import Path
  import yaml
  from ray.tests.kuberay.test_autoscaling_config import get_basic_ray_cr
  from typing import Set, List
label_desc: Use image node_id 2 for calling a global function with example usage: _get_test_yaml(file_name) and returns: yaml