code: def return_error(func, exc_type=Exception):
      @wraps(func)
      def return_exceptions_wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except exc_type:
              return Error(*sys.exc_info())
  
      return return_exceptions_wrapper
  
file_path: mars/mars/lib/tblib/decorators.py
imports: import sys
  from functools import wraps
  from .None import Traceback
label_desc: Use image node_id 1 for calling a global function with example usage: return_error(func, exc_type) and returns: return_exceptions_wrapper, func, Error