code: def test_reconstruction_hangs(config, ray_start_cluster):
      config["max_direct_call_object_size"] = 100
      config["task_retry_delay_ms"] = 100
      config["object_timeout_milliseconds"] = 200
      config["fetch_warn_timeout_milliseconds"] = 1000
  
      cluster = ray_start_cluster
      # Head node with no resources.
      cluster.add_node(
          num_cpus=0,
          _system_config=config,
          enable_object_reconstruction=True,
      )
      ray.init(address=cluster.address)
      # Node to place the initial object.
      node_to_kill = cluster.add_node(
          num_cpus=1,
          resources={"node1": 1},
          object_store_memory=10**8,
      )
      cluster.add_node(num_cpus=1, object_store_memory=10**8)
      cluster.wait_for_nodes()
  
      @ray.remote
      def sleep():
          # Task takes longer than the reconstruction timeout.
          time.sleep(3)
          return np.zeros(10**5, dtype=np.uint8)
  
      @ray.remote
      def dependent_task(x):
          return
  
      obj = sleep.options(resources={"node1": 1}).remote()
      for _ in range(3):
          ray.get(dependent_task.remote(obj))
          x = dependent_task.remote(obj)
          cluster.remove_node(node_to_kill, allow_graceful=False)
          node_to_kill = cluster.add_node(
              num_cpus=1,
              resources={"node1": 1},
              object_store_memory=10**8,
          )
          ray.get(x)
  
file_path: ray/python/ray/tests/test_reconstruction_2.py
imports: import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.ray_constants
  from ray._private.internal_api import memory_summary
  from ray._private.test_utils import Semaphore, SignalActor, wait_for_condition
label_desc: Use image node_id 3 for calling a global function with example usage: test_reconstruction_hangs(config, ray_start_cluster) and returns: np