code: def test_get_runtime_context(ray_start_regular_shared):
      """Test the get_runtime_context data through the metadata API"""
      with ray_start_client_server() as ray:
          rtc = ray.get_runtime_context()
          assert isinstance(rtc, RuntimeContext)
          assert isinstance(rtc.node_id, NodeID)
          assert len(rtc.node_id.hex()) == 56
          assert isinstance(rtc.namespace, str)
  
          # Ensure this doesn't throw
          ray.get_runtime_context().get()
  
          with pytest.raises(Exception):
              _ = rtc.task_id
  
imports: import pytest
  from ray.util.client.ray_client_helpers import ray_start_client_server
  from ray._raylet import NodeID
  from ray.runtime_context import RuntimeContext
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_runtime_context(ray_start_regular_shared) without return types