def random_visual_effect_group(self, image_group, annotations_group):
    '\n        Randomly apply visual effect on each image.\n        '
    assert (len(image_group) == len(annotations_group))
    if (self.visual_effect is None):
        return (image_group, annotations_group)
    for index in range(len(image_group)):
        (image_group[index], annotations_group[index]) = self.random_visual_effect_group_entry(image_group[index], annotations_group[index])
    return (image_group, annotations_group)
Randomly apply visual effect on each image.
def random_visual_effect_group(self, image_group, annotations_group):
    '\n        \n        '
    assert (len(image_group) == len(annotations_group))
    if (self.visual_effect is None):
        return (image_group, annotations_group)
    for index in range(len(image_group)):
        (image_group[index], annotations_group[index]) = self.random_visual_effect_group_entry(image_group[index], annotations_group[index])
    return (image_group, annotations_group)