code: def test_basic_reconstruction_actor_lineage_disabled(
      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": 2},
          object_store_memory=10**8,
      )
      cluster.add_node(
          num_cpus=1,
          resources={"node2": 1},
          object_store_memory=10**8,
      )
      cluster.wait_for_nodes()
  
      # Actor can be restarted but its outputs cannot be reconstructed.
      @ray.remote(max_restarts=-1, resources={"node1": 1}, num_cpus=0)
      class Actor:
          def __init__(self):
              pass
  
          def large_object(self):
              return np.zeros(10**7, dtype=np.uint8)
  
          def pid(self):
              return os.getpid()
  
      @ray.remote
      def dependent_task(x):
          return
  
      a = Actor.remote()
      pid = ray.get(a.pid.remote())
      obj = a.large_object.remote()
      ray.get(
          dependent_task.options(resources={"node1": 1}).remote(obj)
      )
  
      # Workaround to kill the actor process too since there is a bug where the
      # actor's plasma client hangs after the plasma store has exited.
      os.kill(pid, SIGKILL)
  
      cluster.remove_node(node_to_kill, allow_graceful=False)
      cluster.add_node(
          num_cpus=1,
          resources={"node1": 2},
          object_store_memory=10**8,
      )
  
      wait_for_pid_to_exit(pid)
  
      with pytest.raises(ray.exceptions.ObjectLostError):
          ray.get(obj)
  
      while True:
          time.sleep(1)
          try:
              ray.get(a.pid.remote())
              break
          except ray.exceptions.RayActorError:
              pass
  
      # Make sure the actor handle is still usable.
      pid = ray.get(a.pid.remote())
  
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 7 for calling a global function with example usage: test_basic_reconstruction_actor_lineage_disabled(config, ray_start_cluster, reconstruction_enabled) and returns: np, os