code: def _erase_types(fn):
      def result(*args):
          return fn(*args)
  
      result.__name__ = _get_name(fn)
      result.__module__ = fn.__module__
      return debug_logged(result)
  
imports: import inspect
  import typing
  import warnings
  from collections import OrderedDict
  from functools import singledispatch
  import makefun
  from funsor.instrument import debug_logged
  from funsor.terms import Funsor, FunsorMeta, Variable, eager, to_funsor
  from funsor.util import as_callable
label_desc: Use image node_id 2 for calling a global function with example usage: _erase_types(fn) and returns: debug_logged, fn