code: def __init__(self, func, check_type="identity"):
      self.function = func
      self.check = check_type
      self.memory = None
      self.result = None
  
file_path: lkpy/lenskit/util/__init__.py
imports: import logging
  from textwrap import dedent
  from copy import deepcopy
  from ..algorithms import Algorithm
  from .log import log_to_notebook, log_to_stderr
  from .timing import Stopwatch
  from .random import derivable_rng
  from .parallel import proc_count
label_desc: Use image node_id 1 to create a new LastMemo object  with example: obj = LastMemo(func, check_type)