class_docstr: Randomly samples clip of size clip_duration from the videos.
class_docstr_tok: ["Randomly","samples","clip","of","size","clip_duration","from","the","videos","."]
docstr: Args:
      last_clip_end_time (float): Not used for RandomClipSampler.
      video_duration: (float): the duration (in seconds) for the video that's
          being sampled
      annotation (Dict): Not used by this sampler.
  Returns:
      clip_info (ClipInfo): includes the clip information of (clip_start_time,
      clip_end_time, clip_index, aug_index, is_last_clip). The times are in seconds.
      clip_index, aux_index and is_last_clip are always 0, 0 and True, respectively.
docstr_tok: ["Args",":","last_clip_end_time","(","float",")",":","Not","used","for","RandomClipSampler",".","video_duration",":","(","float",")",":","the","duration","(","in","seconds",")","for","the","video","that's","being","sampled","annotation","(","Dict",")",":","Not","used","by","this","sampler",".","Returns",":","clip_info","(","ClipInfo",")",":","includes","the","clip","information","of","(","clip_start_time",",","clip_end_time",",","clip_index",",","aug_index",",","is_last_clip",")",".","The","times","are","in","seconds",".","clip_index",",","aux_index","and","is_last_clip","are","always","0",",","0","and","True",",","respectively","."]
code: def __call__(
      self,
      last_clip_end_time: float,
      video_duration: float,
      annotation: Dict[str, Any],
  ) -> ClipInfo:
      """
      Args:
          last_clip_end_time (float): Not used for RandomClipSampler.
          video_duration: (float): the duration (in seconds) for the video that's
              being sampled
          annotation (Dict): Not used by this sampler.
      Returns:
          clip_info (ClipInfo): includes the clip information of (clip_start_time,
          clip_end_time, clip_index, aug_index, is_last_clip). The times are in seconds.
          clip_index, aux_index and is_last_clip are always 0, 0 and True, respectively.
  
      """
      max_possible_clip_start = max(
          video_duration - self._clip_duration, 0
      )
      clip_start_sec = Fraction(
          random.uniform(0, max_possible_clip_start)
      )
      return ClipInfo(
          clip_start_sec,
          clip_start_sec + self._clip_duration,
          0,
          0,
          True,
      )
  
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 for calling the RandomClipSampler obj's underlying member method code with example usage: obj.__call__(last_clip_end_time, video_duration, annotation) and returns: ClipInfo