code: def test_ray_init_set_node_labels(shutdown_only):
      labels = {"gpu_type": "A100", "region": "us"}
      ray.init(labels=labels)
      node_info = ray.nodes()[0]
      assert node_info["Labels"] == add_default_labels(
          node_info, labels
      )
      ray.shutdown()
      ray.init(labels={})
      node_info = ray.nodes()[0]
      assert node_info["Labels"] == add_default_labels(node_info, {})
  
file_path: ray/python/ray/tests/test_node_labels.py
imports: import os
  import sys
  import pytest
  import subprocess
  import ray
  from ray.cluster_utils import AutoscalingCluster
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 5 for calling a global function with example usage: test_ray_init_set_node_labels(shutdown_only) without return types