def get_random_image(self):
    clip = default_rng().integers(0, self.index.shape[0])
    key = self.index.iloc[clip]['key']
    clip_start = self.index.iloc[clip]['clip_start']
    clip_end = self.index.iloc[clip]['clip_end']
    frame = default_rng().integers(clip_start, (clip_end + 1))
    return self.get_specific_image(key, frame)
def get_random_image(self):
    clip = default_rng().integers(0, self.index.shape[0])
    key = self.index.iloc[clip]['key']
    clip_start = self.index.iloc[clip]['clip_start']
    clip_end = self.index.iloc[clip]['clip_end']
    frame = default_rng().integers(clip_start, (clip_end + 1))
    return self.get_specific_image(key, frame)