def validate_type_ac_pair(type, ac):
assert type in valid_pairs, "<STR_LIT>" + type<EOL>if valid_pairs[type].match(ac):<EOL><INDENT>return (ValidationLevel.VALID,<EOL>"<STR_LIT>".format(ac=ac, type=type))<EOL><DEDENT>elif invalid_pairs[type].match(ac):<EOL><INDENT>return (ValidationLevel.ERROR,<EOL>"<STR_LIT>".format(<EOL>ac=ac, type=type))<EOL><DEDENT>else:<EOL><INDENT>return (ValidationLevel.WARNING,<EOL>"<STR_LIT>".format(<EOL>ac=ac, type=type))<EOL><DEDENT>
validate that accession is correct for variant type AND that
    accession is fully specified.