code: def test_cached_object(config, ray_start_cluster):
      cluster = ray_start_cluster
      # Head node with no resources.
      cluster.add_node(num_cpus=0, _system_config=config)
      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,
          resources={"node2": 1},
          object_store_memory=10**8,
      )
      cluster.wait_for_nodes()
  
      @ray.remote
      def large_object():
          return np.zeros(10**7, dtype=np.uint8)
  
      @ray.remote
      def dependent_task(x):
          return
  
      obj = large_object.options(resources={"node1": 1}).remote()
      ray.get(
          dependent_task.options(resources={"node2": 1}).remote(obj)
      )
  
      cluster.remove_node(node_to_kill, allow_graceful=False)
      cluster.add_node(
          num_cpus=1,
          resources={"node1": 1},
          object_store_memory=10**8,
      )
      wait_for_condition(
          lambda: not all(node["Alive"] for node in ray.nodes()),
          timeout=10,
      )
  
      for _ in range(20):
          large_object.options(resources={"node2": 1}).remote()
  
      ray.get(dependent_task.remote(obj))
  
file_path: ray/python/ray/tests/test_reconstruction.py
imports: import os
  import signal
  import sys
  import time
  import numpy
  import pytest
  import ray
  from ray._private.test_utils import wait_for_condition, wait_for_pid_to_exit
label_desc: Use image node_id 2 for calling a global function with example usage: test_cached_object(config, ray_start_cluster) and returns: np