code: def memoize(func):
      """
      Dead-simple memoize decorator for instance methods that take no arguments.
  
      This is especially useful since so many of our classes are immutable.
      """
      memo = None
  
      @wraps(func)
      def wrapper(self):
          if memo is not None:
              return memo
  
          return func(self)
  
      return wrapper
  
imports: import math
  import string
  from collections import OrderedDict
  from collections.abc import Sequence
  from decimal import ROUND_CEILING, ROUND_FLOOR, Decimal, getcontext
  from functools import wraps
  from slugify import slugify
  from agate import config
  from agate.warns import warn_duplicate_column, warn_unnamed_column
label_desc: Use image node_id 1 for calling a global function with example usage: memoize(func) and returns: wrapper, func, memo