def is_valid_label(label_str: str, label_enum):
    """Check if a label is contained in an  enum.

    :param label_str: string defining the label
    :type label_str: str
    :return: flag indicating if label is valid
    :rtype: bool
    """
    return bool(label_str in [label.name for label in label_enum])