docstr: :param max_size: the maximum number of objects to hold in the memory
docstr_tok: [":","param","max_size",":","the","maximum","number","of","objects","to","hold","in","the","memory"]
code: def __init__(self, max_size: Tuple[MemoryGranularity, int]):
      """
      :param max_size: the maximum number of objects to hold in the memory
      """
      self.max_size = max_size
      self._length = 0
      self.memory_backend = None
  
imports: from enum import Enum
  from typing import Tuple
  from rl_coach.base_parameters import Parameters
  from rl_coach.memories.backend.memory import MemoryBackend
label_desc: Use image node_id 1 to create a new Memory object from inherited base classes: object with example: obj = Memory(max_size)