code: def test_nested_catch_exception_2(workflow_start_regular_shared):
      @ray.remote
      def f1(n):
          if n == 0:
              raise ValueError()
          else:
              return workflow.continuation(f1.bind(n - 1))
  
      ret, err = workflow.run(
          f1.options(**workflow.options(catch_exceptions=True)).bind(5)
      )
      assert ret is None
      assert isinstance(err, ValueError)
  
file_path: ray/python/ray/workflow/tests/test_error_handling.py
imports: import pytest
  import ray
  from ray import workflow
  from ray.tests.conftest import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_nested_catch_exception_2(workflow_start_regular_shared) and returns: workflow