code: def __init__(
      self,
      keys: KeysCollection,
      hash_key: Union[str, Sequence[str]] = ("image_path", "model"),
      in_memory: bool = True,
      ttl: int = 600,
      reset_applied_operations_id: bool = True,
  ):
      self.keys: Tuple[Hashable, ...] = ensure_tuple(keys)
      self.hash_key = (
          [hash_key] if isinstance(hash_key, str) else hash_key
      )
      self.in_memory = in_memory
      self.ttl = ttl
      self.reset_applied_operations_id = reset_applied_operations_id
  
      # remove previous expired...
      init_cache()
  
imports: import copy
  import logging
  import os
  import pathlib
  from typing import Hashable, Sequence, Tuple, Union
  import torch
  from expiring_dict import ExpiringDict
  from monai.config import KeysCollection
  from monai.data import MetaTensor
  from monai.transforms import Transform
  from monai.utils import ensure_tuple
  from monailabel.utils.others.generic import md5_digest
  from monailabel.utils.sessions import Sessions
label_desc: Use image node_id 1 to create a new CacheTransformDatad object from inherited base classes: Transform with example: obj = CacheTransformDatad(keys, hash_key, in_memory, ttl, reset_applied_operations_id)