code: def test_exception_chain(ray_start_regular):
      @ray.remote
      def bar():
          return 1 / 0
  
      @ray.remote
      def foo():
          return ray.get(bar.remote())
  
      r = foo.remote()
      try:
          ray.get(r)
      except ZeroDivisionError as ex:
          assert isinstance(ex, RayTaskError)
  
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 13 for calling a global function with example usage: test_exception_chain(ray_start_regular) and returns: unknown, ray