code: def pickle_function(func):
      mod_name = getattr(func, "__module__", None)
      qname = getattr(func, "__qualname__", None)
  
      try:
          test = unpickle_function(mod_name, qname)
      except pickle.UnpicklingError:
          test = None
  
      if test is not func:
          raise pickle.PicklingError(
              "Can't pickle {}: it's not the same object as {}".format(
                  func, test
              )
          )
  
      return unpickle_function, (mod_name, qname)
  
imports: import typing
  import inspect
  import functools
  from .None import _uarray
  import copyreg
  import atexit
  import pickle
  from ._uarray import BackendNotImplementedError, _Function, _SkipBackendContext, _SetBackendContext
label_desc: Use image node_id 2 for calling a global function with example usage: pickle_function(func) and returns: unpickle_function,  mod_name,  qname