code: def test_actor_creation_stacktrace(ray_start_regular):
      """Test the actor creation task stacktrace."""
      expected_output = """The actor died because of an error raised in its creation task, ray::A.__init__() (pid=XXX, ip=YYY, actor_id={actor_id}, repr=ZZZ) # noqa
    File "FILE", line ZZ, in __init__
      g(3)
    File "FILE", line ZZ, in g
      raise ValueError(a)
  ValueError: 3"""
  
      def g(a):
          raise ValueError(a)
  
      @ray.remote
      class A:
          def __init__(self):
              g(3)
  
          def ping(self):
              pass
  
      a = A.remote()
      try:
          ray.get(a.ping.remote())
      except RayActorError as ex:
          print(ex)
          assert clean_noqa(
              expected_output.format(actor_id=a._actor_id.hex())
          ) == scrub_traceback(str(ex))
  
file_path: ray/python/ray/tests/test_traceback.py
imports: import re
  import sys
  import threading
  import pytest
  import ray
  from ray.exceptions import RayTaskError, RayActorError
label_desc: Use image node_id 3 for calling a global function with example usage: test_actor_creation_stacktrace(ray_start_regular) without return types