def is_iambic_pair(stress1: int, stress2: int) -> bool:
    """Whether the pair of stresses is a valid iambic pair."""
    valid_pairs = {(2, 1), (0, 2), (0, 1), (0, 0), (1, 1), (2, 2)}
    return (stress1, stress2) in valid_pairs
Whether the pair of stresses is a valid iambic pair.
vlmeval/dataset/utils/megabench/scoring/constrained_generation.py