class_docstr: Interface for clip samplers that take a video time, previous sampled clip time,
  and returns a named-tuple ``ClipInfo``.
class_docstr_tok: ["Interface","for","clip","samplers","that","take","a","video","time",",","previous","sampled","clip","time",",","and","returns","a","named-tuple","``","ClipInfo","``","."]
code: def __init__(self, clip_duration: Union[float, Fraction]) -> None:
      self._clip_duration = Fraction(clip_duration)
      self._current_clip_index = 0
      self._current_aug_index = 0
  
imports: import random
  from abc import ABC, abstractmethod
  from fractions import Fraction
  from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Union
label_desc: Use image node_id 1 to create a new ClipSampler object from inherited base classes: ABC with example: obj = ClipSampler(clip_duration)