code: def compute_clips(self, num_frames, step, frame_rate=None):
      self.num_frames = num_frames
      self.step = step
      self.frame_rate = frame_rate
      self.clips = []
      self.resampling_idxs = []
      for video_pts, fps in zip(self.video_pts, self.video_fps):
          clips, idxs = self.select_clips_from_video(
              video_pts, num_frames, fps, frame_rate
          )
          self.clips.append(clips)
          self.resampling_idxs.append(idxs)
  
file_path: mmf/mmf/datasets/builders/charades/_utils.py
imports: import logging
  import tempfile
  from pathlib import Path
  import pandas
  import torch
  from torchvision.datasets.video_utils import VideoClips
  from torchvision.io import read_video
label_desc: Use image node_id 2 for calling the CharadesVideoClips obj's underlying member method code with example usage: obj.compute_clips(num_frames, step, frame_rate) without return types