def METHOD_NAME(
    sweeps: Sequence[cirq.Sweepable],
    repetitions: Union[int, Sequence[int]],
    max_repetitions: int = MAX_TOTAL_REPETITIONS,
) -> None:
    """Verify that the total number of repetitions is under the limit."""
    total_reps = 0
    for idx, sweep in enumerate(sweeps):
        if not isinstance(repetitions, int):
            total_reps += len(list(cirq.to_resolvers(sweep))) * repetitions[idx]
        else:
            total_reps += len(list(cirq.to_resolvers(sweep))) * repetitions
    if total_reps > max_repetitions:
        raise RuntimeError(
            'No requested processors currently support the number of requested total repetitions.'
        )