code: def _traced_call_method(name, fnc):
      def _traced_call_int(self, *args, **kwargs):
          _log_stderr(name, fnc, args, kwargs, False)
          r = None
          try:
              ret = fnc(self, *args, **kwargs)
          except Exception as ex:
              r = ex
          _log_stderr(name, fnc, args, kwargs, True)
          if r:
              raise r
          return ret
  
      return _traced_call_int
  
file_path: clearml/clearml/debugging/trace.py
imports: import os
  import sys
  import threading
  import inspect
  import time
  import zipfile
label_desc: Use image node_id 4 for calling a global function with example usage: _traced_call_method(name, fnc) and returns: _traced_call_int, ret