code: def test_provide_without_domain(
      default_model_storage: ModelStorage,
      default_execution_context: ExecutionContext,
  ):
      component = DomainProvider.create(
          DomainProvider.get_default_config(),
          default_model_storage,
          Resource("some resource"),
          default_execution_context,
      )
  
      with pytest.raises(InvalidConfigException):
          component.provide_inference()
  
file_path: rasa/tests/graph_components/providers/test_domain_provider.py
imports: from typing import Text
  import pytest
  from rasa.engine.graph import ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.graph_components.providers.domain_provider import DomainProvider
  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 2 for calling a global function with example usage: test_provide_without_domain(default_model_storage, default_execution_context) without return types