@stockholm.sniffer()
def _stockholm_sniffer(fh):
    # Smells a Stockholm file if the following conditions are met:
    # - File isn't empty
    # - File contains correct header
    try:
        line = next(fh)
    except __HOLE__:
        return False, {}

    if _is_header(line):
        return True, {}

    return False, {}
dataset/ETHPy150Open biocore/scikit-bio/skbio/io/format/stockholm.py/_stockholm_sniffer