code: def get_clip_timepoints(clip_sampler, duration):
      # Read out all clips in this video
      all_clips_timepoints = []
      is_last_clip = False
      end = 0.0
      while not is_last_clip:
          start, end, _, _, is_last_clip = clip_sampler(
              end, duration, annotation=None
          )
          all_clips_timepoints.append((start, end))
      return all_clips_timepoints
  
imports: import logging
  import math
  import torch
  import torch.nn
  import torchaudio
  from PIL import Image
  from pytorchvideo import transforms
  from pytorchvideo.data.clip_sampling import ConstantClipsPerVideoSampler
  from pytorchvideo.data.encoded_video import EncodedVideo
  from torchvision import transforms
  from torchvision.transforms._transforms_video import NormalizeVideo
  from imagebind.models.multimodal_preprocessors import SimpleTokenizer
label_desc: Use image node_id 2 for calling a global function with example usage: get_clip_timepoints(clip_sampler, duration) and returns: all_clips_timepoints