code: def read_videos(self, begtime=None, endtime=None):
          if isinstance(begtime, datetime):
              begtime = begtime - self.header['start_time']
          if isinstance(begtime, timedelta):
              begtime = begtime.total_seconds()
          if isinstance(endtime, datetime):
              endtime = endtime - self.header['start_time']
          if isinstance(endtime, timedelta):
              endtime = endtime.total_seconds()
          videos = self.dataset.return_videos(begtime, endtime)
          return videos