def has_tag(node, kind):
    for d in node['directory']:
        if d.kind == kind:
            return True
    return False
Does the node contains a Tag of a given kind?
dataset/ETHPy150Open mne-tools/mne-python/mne/io/tag.py/has_tag