code: def _find_non_increasing_timestamps(
      timestamps: List[Fraction],
  ) -> List[bool]:
      """Finds all non-increasing timestamps.
  
      Arguments:
          timestamps:
              Video frame timestamps.
  
      Returns:
          A boolean for each input timestamp which is True if the timestamp is
          non-increasing and False otherwise.
  
      """
      if len(timestamps) == 0:
          return []
      is_non_increasing = np.zeros(
          shape=len(timestamps),
          dtype=bool,
      )
      max_timestamp = timestamps[0] - 1
      for i, timestamp in enumerate(timestamps):
          if timestamp > max_timestamp:
              max_timestamp = timestamp
          else:
              is_non_increasing[i] = True
  
      return list(is_non_increasing)
  
imports: import os
  import threading
  import warnings
  import weakref
  from fractions import Fraction
  from typing import Any, Dict, List, Tuple
  import numpy
  import torch
  import torchvision
  from PIL import Image
  from torch.utils.data import DataLoader, Dataset
  from torchvision import datasets, io
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: _find_non_increasing_timestamps(timestamps) and returns: list, list