class_docstr: Custom fixed size list that only supports right-append and ensures that all values increase monotonically.
code: def __setitem__(self, key: Any, value: Any) -> None:
      # assigning is not implemented since we don't use it. it could be by checking all previous values
      raise NotImplementedError("__setitem__ is not supported")
  
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 4 for calling the _MonotonicWindow obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types