@staticmethod
def _find_example_for_label(label: Text, examples: List[Message], attribute: Text) -> Optional[Message]:
    for ex in examples:
        if (ex.get(attribute) == label):
            return ex
    return None
@staticmethod
def _find_example_for_label(label: Text, examples: List[Message], attribute: Text) -> Optional[Message]:
    for ex in examples:
        if (ex.get(attribute) == label):
            return ex
    return None