code: def test_node_type_configs():
      config = FileConfigReader(
          get_test_config_path("test_ray_complex.yaml")
      ).get_autoscaling_config()
  
      node_type_configs = config.get_node_type_configs()
      assert config.get_max_num_worker_nodes() == 10
      assert len(node_type_configs) == 4
      assert node_type_configs["head_node"].max_worker_nodes == 0
      assert node_type_configs["head_node"].min_worker_nodes == 0
      assert node_type_configs["head_node"].resources == {}
      assert node_type_configs["head_node"].labels == {}
  
      assert node_type_configs["default"].max_worker_nodes == 2
      assert node_type_configs["default"].min_worker_nodes == 0
      assert node_type_configs["default"].resources == {}
      assert node_type_configs["default"].labels == {}
  
      assert node_type_configs["worker_nodes"].max_worker_nodes == 2
      assert node_type_configs["worker_nodes"].min_worker_nodes == 1
      assert node_type_configs["worker_nodes"].resources == {}
      assert node_type_configs["worker_nodes"].labels == {}
  
      assert node_type_configs["worker_nodes1"].max_worker_nodes == 2
      assert node_type_configs["worker_nodes1"].min_worker_nodes == 1
      assert node_type_configs["worker_nodes1"].resources == {"CPU": 2}
      assert node_type_configs["worker_nodes1"].labels == {"foo": "bar"}
  
file_path: ray/python/ray/autoscaler/v2/tests/test_config.py
imports: import os
  import sys
  import pytest
  from ray._private.test_utils import get_test_config_path
  from ray.autoscaler import AUTOSCALER_DIR_PATH
  from ray.autoscaler.v2.instance_manager.config import FileConfigReader
label_desc: Use image node_id 4 for calling a global function with example usage: test_node_type_configs() without return types