def __getitem__(self, index: int) -> GAPExample:
    example = self._examples[index]
    if ((self._flip_prob == 1.0) or ((self._flip_prob > 0.0) and (random.random() <= self._flip_prob))):
        example = self._flip_example(example)
    return example
def __getitem__(self, index: int) -> GAPExample:
    example = self._examples[index]
    if ((self._flip_prob == 1.0) or ((self._flip_prob > 0.0) and (random.random() <= self._flip_prob))):
        example = self._flip_example(example)
    return example