def is_par(chromosome, position, build='<STR_LIT>'):
chrom_match = CHR_PATTERN.match(chromosome)<EOL>chrom = chrom_match.group(<NUM_LIT:2>)<EOL>if not chrom in ['<STR_LIT:X>','<STR_LIT:Y>']:<EOL><INDENT>return False<EOL><DEDENT>if PAR_COORDINATES[build][chrom].search(position):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Check if a variant is in the Pseudo Autosomal Region or not

    Args:
        chromosome(str)
        position(int)
        build(str): The genome build

    Returns:
        bool