class_docstr: Custom fixed size list that only supports right-append and ensures that all values increase monotonically.
code: def __init__(self, maxlen: int) -> None:
      super().__init__()
      self.maxlen = maxlen
  
imports: from collections import deque
  from typing import TYPE_CHECKING, Any, Callable, Deque, Dict, List, Optional, TypeVar, Union
  import torch
  from typing_extensions import override
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_1
  from lightning.fabric.utilities.rank_zero import rank_zero_only, rank_zero_warn
label_desc: Use image node_id 1 to create a new _MonotonicWindow object from inherited base classes: List with example: obj = _MonotonicWindow(maxlen)