code: def test_task_stacktrace(ray_start_regular):
      """Test the normal task stacktrace."""
      expected_output = """ray::f() (pid=XXX, ip=YYY)
    File "FILE", line ZZ, in f
      return g(c)
    File "FILE", line ZZ, in g
      raise ValueError(a)
  ValueError: 7"""
  
      def g(a):
          raise ValueError(a)
          # pass
  
      @ray.remote
      def f():
          a = 3
          b = 4
          c = a + b
          return g(c)
  
      try:
          ray.get(f.remote())
      except ValueError as ex:
          print(ex)
          assert clean_noqa(expected_output) == 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 4 for calling a global function with example usage: test_task_stacktrace(ray_start_regular) and returns: g