code: def memoize(f, refresh_keyword="mrefresh"):
      """
      Memoize decorator. The refresh keyword is the keyword
      used to bypass the cache (in the function call).
      """
      f.mcache = {}
      f.mrefresh_keyword = refresh_keyword
      return decorator.decorator(_memoize, f)
  
file_path: ffn/ffn/utils.py
imports: import re
  import decorator
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: memoize(f, refresh_keyword) and returns: decorator