code: def partial(f, *args, **kwargs):
      """Wraps `functools.partial` to return a function rather than an object."""
      wrapped_f = functools.partial(f, *args, **kwargs)
      # `wrapt` and `decorator` do not work on `functools.partial` objects.
      return lambda *args, **kwargs: wrapped_f(*args, **kwargs)
  
file_path: probability/tensorflow_probability/python/internal/backend/numpy/_utils.py
imports: import functools
  import importlib
  import types
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import nest
label_desc: Use image node_id 7 for calling a global function with example usage: partial(f) and returns: function