code: def lazy(func):
      memory = {}
  
      @functools.wraps(func)
      def wrapper(*args):
          # Disabling caching in test mode
          if True:
              return func(*args)
  
          try:
              return memory[args]
          except KeyError:
              memory[args] = func(*args)
          return memory[args]
  
      return wrapper
  
imports: import collections
  import functools
  import math
  import os
  import re
  import sys
  import yatest_lib.tools
label_desc: Use image node_id 1 for calling a global function with example usage: lazy(func) and returns: wrapper, memory, func, memory