class_docstr: Validates a "DefaultV1" configuration against the training data and domain.
class_docstr_tok: ["Validates","a","``","DefaultV1","''","configuration","against","the","training","data","and","domain","."]
docstr: Warns if there is no rule policy among the given policies.
docstr_tok: ["Warns","if","there","is","no","rule","policy","among","the","given","policies","."]
code: def _warn_if_no_rule_policy_is_contained(self) -> None:
      """Warns if there is no rule policy among the given policies."""
      if not any(
          node.uses == RulePolicy for node in self._policy_schema_nodes
      ):
          rasa.shared.utils.io.raise_warning(
              f"'{RulePolicy.__name__}' is not included in the model's "
              f"policy configuration. Default intents such as "
              f"'{USER_INTENT_RESTART}' and '{USER_INTENT_BACK}' will "
              f"not trigger actions '{ACTION_RESTART_NAME}' and "
              f"'{ACTION_BACK_NAME}'.",
              docs=DOCS_URL_DEFAULT_ACTIONS,
          )
  
imports: from __future__ import annotations
  from collections import defaultdict
  from typing import Iterable, List, Dict, Text, Any, Set, Type, cast
  from rasa.core.featurizers.precomputation import CoreFeaturizationInputConverter
  from rasa.engine.graph import ExecutionContext, GraphComponent, GraphSchema, SchemaNode
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.storage.resource import Resource
  from rasa.nlu.featurizers.featurizer import Featurizer
  from rasa.nlu.extractors.mitie_entity_extractor import MitieEntityExtractor
  from rasa.nlu.extractors.regex_entity_extractor import RegexEntityExtractor
  from rasa.nlu.extractors.crf_entity_extractor import CRFEntityExtractor, CRFEntityExtractorOptions
  from rasa.nlu.extractors.entity_synonyms import EntitySynonymMapper
  from rasa.nlu.featurizers.sparse_featurizer.regex_featurizer import RegexFeaturizer
  from rasa.nlu.classifiers.diet_classifier import DIETClassifier
  from rasa.nlu.selectors.response_selector import ResponseSelector
  from rasa.nlu.tokenizers.tokenizer import Tokenizer
  from rasa.core.policies.rule_policy import RulePolicy
  from rasa.core.policies.policy import Policy, SupportedData
  from rasa.core.policies.memoization import MemoizationPolicy
  from rasa.core.policies.ted_policy import TEDPolicy
  from rasa.core.constants import POLICY_PRIORITY
  from rasa.shared.core.training_data.structures import RuleStep, StoryGraph
  from rasa.shared.constants import DEFAULT_CONFIG_PATH, DOCS_URL_COMPONENTS, DOCS_URL_DEFAULT_ACTIONS, DOCS_URL_POLICIES, DOCS_URL_RULES
  from rasa.shared.core.domain import Domain, InvalidDomain
  from rasa.shared.core.constants import ACTION_BACK_NAME, ACTION_RESTART_NAME, USER_INTENT_BACK, USER_INTENT_RESTART
  from rasa.shared.exceptions import InvalidConfigException
  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 11 for calling the DefaultV1RecipeValidator obj's underlying member method code with example usage: obj._warn_if_no_rule_policy_is_contained() without return types