code: def register_func(name, func):
      if name not in __all__:
          raise ValueError("%s not a dual function." % name)
      f = sys._getframe(0).f_globals
      _restore_dict[name] = f[name]
      f[name] = func
  
imports: from __future__ import division, absolute_import, print_function
  import numpy.linalg
  import numpy.fft
  from numpy.lib import i0
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: register_func(name, func) without return types