code: def test_actor_scope_or_intentionally_killed_message(
      ray_start_regular, error_pubsub
  ):
      p = error_pubsub
  
      @ray.remote
      class Actor:
          def __init__(self):
              # This log is added to debug a flaky test issue.
              print(os.getpid())
  
          def ping(self):
              pass
  
      a = Actor.remote()
      # Without this waiting, there seems to be race condition happening
      # in the CI. This is not a fundamental fix for that, but it at least
      # makes the test less flaky.
      ray.get(a.ping.remote())
      a = Actor.remote()
      a.__ray_terminate__.remote()
      time.sleep(1)
      errors = get_error_message(p, 1)
      assert (
          len(errors) == 0
      ), "Should not have propogated an error - {}".format(errors)
  
imports: import os
  import signal
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray._private.ray_constants
  import ray._private.utils
  from ray._private.test_utils import SignalActor, convert_actor_state, get_error_message, init_error_pubsub, wait_for_condition
  from ray.exceptions import GetTimeoutError, RayActorError, RayTaskError
label_desc: Use image node_id 12 for calling a global function with example usage: test_actor_scope_or_intentionally_killed_message(ray_start_regular, error_pubsub) without return types