code: def test_cluster_add_node_with_labels(ray_start_cluster):
      labels = {"gpu_type": "A100", "region": "us"}
      cluster = ray_start_cluster
      cluster.add_node(num_cpus=1, labels=labels)
      cluster.wait_for_nodes()
      ray.init(address=cluster.address)
      node_info = ray.nodes()[0]
      assert node_info["Labels"] == add_default_labels(
          node_info, labels
      )
      head_node_id = ray.nodes()[0]["NodeID"]
  
      cluster.add_node(num_cpus=1, labels={})
      cluster.wait_for_nodes()
      for node in ray.nodes():
          if node["NodeID"] != head_node_id:
              assert node["Labels"] == add_default_labels(node, {})
  
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 8 for calling a global function with example usage: test_cluster_add_node_with_labels(ray_start_cluster) without return types