code: def get_func(obj, doc):
      """Get new numpy function with object and doc"""
  
      @wraps(obj)
      def wrapper(*args, **kwargs):
          return obj(*args, **kwargs)
  
      wrapper.__doc__ = doc
      return wrapper
  
imports: import sys
  from functools import wraps
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: get_func(obj, doc) and returns: wrapper, obj