code: def append(self, value: T, priority: Optional[float] = None) -> None:
      if self.capacity is not None and len(self) == self.capacity:
          self.popleft()
      if priority is None:
          # Append with the highest priority
          priority = self.max_priority
  
      self.data.append(value)
      self.priority_sums.append(priority)
      self.priority_mins.append(priority)
  
imports: import collections
  from typing import Any, Callable, Deque, Generic, List, Optional, Sequence, Tuple, TypeVar
  import numpy
  from pfrl.utils.random import sample_n_k
label_desc: Use image node_id 3 for calling the PrioritizedBuffer obj's underlying member method code with example usage: obj.append(value, priority) without return types