code: def __init__(
      self,
      *args,
      min_time_to_cache=DEFAULT_MIN_TIME_TO_CACHE,
      caches_between_reduce=DEFAULT_CALLS_BETWEEN_REDUCE,
      **kwargs,
  ):
      super().__init__(*args, **kwargs)
      self.min_time_to_cache = min_time_to_cache
      self.caches_between_reduce = caches_between_reduce
      self.reduce_size()
  
imports: import hashlib
  import pickle
  import struct
  import sys
  import tempfile
  import time
  import traceback
  from pathlib import Path
  from typing import TYPE_CHECKING, Union
  from joblib.hashing import Hasher, Pickler
  from joblib.memory import MemorizedFunc, MemorizedResult, Memory, NotMemorizedResult, _format_load_msg, filter_args, format_call, format_signature, format_time, get_func_name
  from xxhash import xxh128
label_desc: Use image node_id 1 to create a new FastMemory object from inherited base classes: Memory with example: obj = FastMemory()