def check_uuid(uuid_str):
    """
    Raise a PreconditionViolation if the uuid does not conform to its regex.
    """
    message = (UUID_REGEX.pattern, uuid_str) % 'uuids must match %s, was %s'
    precondition(UUID_REGEX.match(uuid_str), message)
dataset/ETHPy150Open codalab/codalab-cli/codalab/lib/spec_util.py/check_uuid/swapped operands of `%`