code: def exit_handler(
      res: Tuple[Optional[str], Optional[Exception]]
  ) -> None:
      result, error = res
      email = send_email.bind(f"Raw result: {result}, {error}")
      if error:
          handler = cry.bind(error)
      else:
          handler = celebrate.bind(result)
      return workflow.continuation(wait_all.bind(handler, email))
  
file_path: ray/python/ray/workflow/examples/comparisons/argo/exit_handler_workflow.py
imports: from typing import Tuple, Optional
  import ray
  from ray import workflow
label_desc: Use image node_id 5 for calling a global function with example usage: exit_handler(res) and returns: workflow