code: def get_frame(self, index=None, onset=None):
          ''' Overrides the default behavior by giving access to the onset
          argument.
  
          Args:
              index (int): Positional index of the desired frame.
              onset (float): Onset (in seconds) of the desired frame.
          '''
          if onset:
              index = int(onset * self.fps)
  
          return super(VideoStim, self).get_frame(indexf get_frame(self, index=None, onset=None):
          ''' Overrides the default behavior by giving access to the onset
          argument.
  
          Args:
              index (int): Positional index of the desired frame.
              onset (float): Onset (in seconds) of the desired frame.
          '''
          if onset:
              index = int(onset * self.fps)
  
          return super(VideoStim, self).get_frame(index)
docs: Overrides the default behavior by giving access to the onset
          argument.
  
          Args:
              index (int): Positional index of the desired frame.
              onset (float): Onset (in seconds) of the desired frame.