code: def test_object_lost_error(ray_start_cluster, debug_enabled):
      cluster = ray_start_cluster
      system_config = {
          "health_check_failure_threshold": 3,
          "health_check_period_ms": 1000,
          "health_check_initial_delay_ms": 0,
      }
      if debug_enabled:
          system_config["record_ref_creation_sites"] = True
      cluster.add_node(num_cpus=0, _system_config=system_config)
      ray.init(address=cluster.address)
      worker_node = cluster.add_node(num_cpus=1)
  
      @ray.remote(num_cpus=1)
      class Actor:
          def __init__(self):
              return
  
          def foo(self):
              return "x" * 1000_000
  
          def done(self):
              return
  
      @ray.remote
      def borrower(ref):
          ray.get(ref[0])
  
      @ray.remote
      def task_arg(ref):
          return
  
      a = Actor.remote()
      x = a.foo.remote()
      ray.get(a.done.remote())
      cluster.remove_node(worker_node, allow_graceful=False)
      cluster.add_node(num_cpus=1)
  
      y = borrower.remote([x])
  
      try:
          ray.get(x)
          assert False
      except ray.exceptions.ObjectLostError as e:
          error = str(e)
          print(error)
          assert ("actor call" in error) == debug_enabled
          assert ("test_object_lost_error" in error) == debug_enabled
  
      try:
          ray.get(y)
          assert False
      except ray.exceptions.RayTaskError as e:
          error = str(e)
          print(error)
          assert ("actor call" in error) == debug_enabled
          assert ("test_object_lost_error" in error) == debug_enabled
  
      try:
          ray.get(task_arg.remote(x))
      except ray.exceptions.RayTaskError as e:
          error = str(e)
          print(error)
          assert ("actor call" in error) == debug_enabled
          assert ("test_object_lost_error" in error) == debug_enabled
  
imports: import subprocess
  import sys
  import time
  import grpc
  import numpy
  import psutil
  import pytest
  from grpc._channel import _InactiveRpcError
  from ray.util.state import list_tasks
  from ray._private.state_api_test_utils import verify_failed_task
  import ray
  import ray._private.ray_constants
  import ray.experimental.internal_kv
  from ray import NodeID
  from ray._private.test_utils import SignalActor, get_error_message, init_error_pubsub, run_string_as_driver, wait_for_condition, kill_raylet
  from ray.cluster_utils import Cluster, cluster_not_supported
  from ray.core.generated import gcs_service_pb2, gcs_service_pb2_grpc, node_manager_pb2, node_manager_pb2_grpc
  from ray.exceptions import LocalRayletDiedError
label_desc: Use image node_id 7 for calling a global function with example usage: test_object_lost_error(ray_start_cluster, debug_enabled) and returns: unknown