@phylip.sniffer()
def _phylip_sniffer(fh):
    # Strategy:
    #   Read the header and a single sequence; verify that the sequence length
    #   matches the header information.  Do not verify that the total number of
    #   lines matches the header information, since that would require reading
    #   the whole file.
    try:
        header = next(_line_generator(fh))
        _, seq_len = _validate_header(header)
        line = next(_line_generator(fh))
        _validate_line(line, seq_len)
    except (__HOLE__, PhylipFormatError):
        return False, {}
    return True, {}
dataset/ETHPy150Open biocore/scikit-bio/skbio/io/format/phylip.py/_phylip_sniffer