def METHOD_NAME(self, videos, return_all_frames=False):
    """
        Get video Features
        Args:
            videos: the dim is [1, 12, 3, 224, 224]
            return_all_frames: default False
    """
    batch_size = videos.shape[0]
    video_data = videos.reshape(-1, 3, self.config.input_res,
                                self.config.input_res)
    video_features = self.clip.encode_image(video_data)
    video_features = video_features / video_features.norm(
        dim=-1, keepdim=True)
    video_features = video_features.reshape(batch_size,
                                            self.config.num_frames, -1)
    video_features_pooled = self.pool_frames(video_features)
    if return_all_frames:
        return video_features, video_features_pooled
    return video_features_pooled