code: def memoized_ignoreargs(func):
      """
      A decorator. It performs memoization ignoring the arguments used to call
      the function.
      """
  
      def wrapper(*args, **kwargs):
          if func not in _MEMOIZED_NOARGS:
              res = func(*args, **kwargs)
              _MEMOIZED_NOARGS[func] = res
              return res
          return _MEMOIZED_NOARGS[func]
  
      return wrapper
  
file_path: tensorpack/tensorpack/utils/argtools.py
imports: import inspect
  import functools
  from .None import logger
label_desc: Use image node_id 3 for calling a global function with example usage: memoized_ignoreargs(func) and returns: wrapper, _MEMOIZED_NOARGS, res