class_docstr: Provides domain during training and inference time.
docstr: Creates domain provider.
docstr_tok: ["Creates","domain","provider","."]
code: def __init__(
      self,
      model_storage: ModelStorage,
      resource: Resource,
      domain: Optional[Domain] = None,
  ) -> None:
      """Creates domain provider."""
      self._model_storage = model_storage
      self._resource = resource
      self._domain = domain
  
file_path: rasa/rasa/graph_components/providers/domain_provider.py
imports: from __future__ import annotations
  from typing import Dict, Text, Any, Optional
  from rasa.engine.graph import GraphComponent, ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.core.domain import Domain
  from rasa.shared.exceptions import InvalidConfigException
  from rasa.shared.importers.importer import TrainingDataImporter
label_desc: Use image node_id 1 to create a new DomainProvider object from inherited base classes: GraphComponent with example: obj = DomainProvider(model_storage, resource, domain)