code: def _handle_wrap_partial_func(obj):
      """Processes wrapped function and partial functions recursively."""
      modified = True
      while modified:
          modified = False
          while hasattr(obj, "__wrapped__"):
              obj = obj.__wrapped__
              modified = True
          if isinstance(obj, functools.partial) or isinstance(
              obj, functools.partialmethod
          ):
              obj = obj.func
              modified = True
      return obj
  
file_path: tensorflow/tensorflow/core/function/capture/free_vars_detect.py
imports: import builtins
  import collections
  import functools
  import inspect
  import types
  from tensorflow.python.autograph.pyct import anno
  from tensorflow.python.autograph.pyct import inspect_utils
  from tensorflow.python.autograph.pyct import naming
  from tensorflow.python.autograph.pyct import parser
  from tensorflow.python.autograph.pyct import qual_names
  from tensorflow.python.autograph.pyct import transformer
  from tensorflow.python.autograph.pyct.static_analysis import activity
label_desc: Use image node_id 2 for calling a global function with example usage: _handle_wrap_partial_func(obj) and returns: obj