code: def test_basic_reconstruction_put(
      config, ray_start_cluster, reconstruction_enabled
  ):
      # Workaround to reset the config to the default value.
      if not reconstruction_enabled:
          config["lineage_pinning_enabled"] = False
  
      cluster = ray_start_cluster
      # Head node with no resources.
      cluster.add_node(
          num_cpus=0,
          _system_config=config,
          enable_object_reconstruction=reconstruction_enabled,
      )
      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(max_retries=1 if reconstruction_enabled else 0)
      def large_object():
          return np.zeros(10**7, dtype=np.uint8)
  
      @ray.remote
      def dependent_task(x):
          return x
  
      obj = ray.put(np.zeros(10**7, dtype=np.uint8))
      result = dependent_task.options(resources={"node1": 1}).remote(
          obj
      )
      ray.get(result)
      del obj
  
      cluster.remove_node(node_to_kill, allow_graceful=False)
      cluster.add_node(
          num_cpus=1,
          resources={"node1": 1},
          object_store_memory=10**8,
      )
  
      for _ in range(20):
          ray.put(np.zeros(10**7, dtype=np.uint8))
  
      if reconstruction_enabled:
          ray.get(result)
      else:
          # The copy that we fetched earlier may still be local or it may have
          # been evicted.
          try:
              ray.get(result)
          except ray.exceptions.ObjectLostError:
              pass
  
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 5 for calling a global function with example usage: test_basic_reconstruction_put(config, ray_start_cluster, reconstruction_enabled) and returns: np, x