class_docstr: Subsample/Upsample the number of frames in a sequence.
docstr: __init__.
  
  :param speed_rate: float, the speed rate between the frame rate of             the input video and the frame rate used for training.
docstr_tok: ["__init__",".",":","param","speed_rate",":","float",",","the","speed","rate","between","the","frame","rate","of","the","input","video","and","the","frame","rate","used","for","training","."]
code: def __init__(self, speed_rate=1.0):
      """__init__.
  
          :param speed_rate: float, the speed rate between the frame rate of \
              the input video and the frame rate used for training.
          """
      self._speed_rate = speed_rate
  
imports: import random
  import cv2
  import numpy
  import torch
  from scipy import signal
label_desc: Use image node_id 1 to create a new SpeedRate object from inherited base classes: object with example: obj = SpeedRate(speed_rate)