code: def test_raylet_crash_when_get(ray_start_regular):
      def sleep_to_kill_raylet():
          # Don't kill raylet before default workers get connected.
          time.sleep(2)
          ray._private.worker._global_node.kill_raylet()
  
      object_ref = ray.put(np.zeros(200 * 1024, dtype=np.uint8))
      ray._private.internal_api.free(object_ref)
  
      thread = threading.Thread(target=sleep_to_kill_raylet)
      thread.start()
      with pytest.raises(ray.exceptions.ObjectFreedError):
          ray.get(object_ref)
      thread.join()
  
imports: import os
  import signal
  import sys
  import threading
  import time
  import numpy
  import pytest
  import ray
  import ray._private.ray_constants
  import ray._private.utils
  from ray._private.ray_constants import DEBUG_AUTOSCALING_ERROR
  from ray._private.test_utils import Semaphore, get_error_message, get_log_batch, init_error_pubsub, run_string_as_driver_nonblocking, wait_for_condition
  from ray.cluster_utils import cluster_not_supported
  from ray.experimental.internal_kv import _internal_kv_get
label_desc: Use image node_id 5 for calling a global function with example usage: test_raylet_crash_when_get(ray_start_regular) without return types