def _check_size(video_results, size):
    """Check if the video sizes and size attributes match the given size."""
    for h in video_results['height']:
        if h != size[0]:
            return False
    for w in video_results['width']:
        if w != size[1]:
            return False
    for video in video_results['video']:
        if video.shape[1] != size[0]:
            return False
        if video.shape[2] != size[1]:
            return False
    return True