code: def wraps(fun, namestr="{fun}", docstr="{doc}", **kwargs):
      def _wraps(f):
          try:
              f.__name__ = namestr.format(fun=get_name(fun), **kwargs)
              f.__doc__ = docstr.format(
                  fun=get_name(fun), doc=get_doc(fun), **kwargs
              )
          finally:
              return f
  
      return _wraps
  
imports: from .util import subvals
label_desc: Use image node_id 2 for calling a global function with example usage: wraps(fun, namestr, docstr) and returns: _wraps, f