code: def api_request_catch():
      def wrapper(func):
          def inner_wrapper(*args, **kwargs):
              try:
                  _kwargs = copy.deepcopy(kwargs)
                  if "enable_traceback" in _kwargs:
                      del _kwargs["enable_traceback"]
                  res = func(*args, **_kwargs)
                  # if enable_traceback == "True":
                  if kwargs.get("enable_traceback", True):
                      res_str = str(res)
                      log_res = (
                          res_str[0:log_row_length] + "......"
                          if len(res_str) > log_row_length
                          else res_str
                      )
                      log.debug("(api_response) : %s " % log_res)
  
                  return res, True
              except Exception as e:
                  e_str = str(e)
                  log_e = (
                      e_str[0:log_row_length] + "......"
                      if len(e_str) > log_row_length
                      else e_str
                  )
                  # if enable_traceback == "True":
                  if kwargs.get("enable_traceback", True):
                      log.error(traceback.format_exc())
                      log.error("(api_response) : %s" % log_e)
                  return Error(e), False
  
          return inner_wrapper
  
      return wrapper
  
file_path: milvus/tests/python_client/utils/api_request.py
imports: import traceback
  import copy
  import os
  from utils.util_log import test_log
label_desc: Use image node_id 1 for calling a global function with example usage: api_request_catch() and returns: wrapper, inner_wrapper, res,  True, Error,  False