class_docstr: A class used to verify usage of intents and utterances.
class_docstr_tok: ["A","class","used","to","verify","usage","of","intents","and","utterances","."]
docstr: Compares list of intents in domain with intents in NLU training data.
docstr_tok: ["Compares","list","of","intents","in","domain","with","intents","in","NLU","training","data","."]
code: def verify_intents(self, ignore_warnings: bool = True) -> bool:
      """Compares list of intents in domain with intents in NLU training data."""
      everything_is_alright = True
  
      nlu_data_intents = {
          e.data["intent"] for e in self.intents.intent_examples
      }
  
      for intent in self._non_default_intents():
          if intent not in nlu_data_intents:
              rasa.shared.utils.io.raise_warning(
                  f"The intent '{intent}' is listed in the domain file, but "
                  f"is not found in the NLU training data."
              )
              everything_is_alright = (
                  ignore_warnings or everything_is_alright
              )
  
      for intent in nlu_data_intents:
          if intent not in self.domain.intents:
              rasa.shared.utils.io.raise_warning(
                  f"There is a message in the training data labeled with intent "
                  f"'{intent}'. This intent is not listed in your domain. You "
                  f"should need to add that intent to your domain file!",
                  docs=DOCS_URL_DOMAINS,
              )
              everything_is_alright = ignore_warnings
  
      return everything_is_alright
  
imports: import logging
  from collections import defaultdict
  from typing import Set, Text, Optional, Dict, Any, List
  import rasa.core.training.story_conflict
  import rasa.shared.nlu.constants
  from rasa.shared.constants import ASSISTANT_ID_DEFAULT_VALUE, ASSISTANT_ID_KEY, CONFIG_MANDATORY_KEYS, DOCS_URL_DOMAINS, DOCS_URL_FORMS, UTTER_PREFIX, DOCS_URL_ACTIONS, REQUIRED_SLOTS_KEY
  from rasa.shared.core import constants
  from rasa.shared.core.constants import MAPPING_CONDITIONS, ACTIVE_LOOP
  from rasa.shared.core.events import ActionExecuted, ActiveLoop
  from rasa.shared.core.events import UserUttered
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.generator import TrainingDataGenerator
  from rasa.shared.core.constants import SlotMappingType, MAPPING_TYPE
  from rasa.shared.core.training_data.structures import StoryGraph
  from rasa.shared.importers.importer import TrainingDataImporter
  from rasa.shared.nlu.training_data.training_data import TrainingData
  import rasa.shared.utils.io
label_desc: Use image node_id 4 for calling the Validator obj's underlying member method code with example usage: obj.verify_intents(ignore_warnings) and returns: everything_is_alright