def __contains__(self, label: str) -> bool:
        """Whether a label is present in the patterns."""
        for label_id in self._match_label_id_map.values():
            if label_id["label"] == label:
                return True
        return False
Whether a label is present in the patterns.
spacy/pipeline/span_ruler.py