code: def test_slot_mappings_invalid_type_raises():
      with pytest.raises(YamlValidationException):
          Domain.from_yaml(
              f"""
              version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
              entities:
              - from_entity
              slots:
                some_slot:
                  type: text
                  influence_conversation: False
                  mappings:
                    type: from_entity
                    entity: some_entity
              """
          )
  
file_path: rasa/tests/shared/core/test_slot_mappings.py
imports: from typing import Text
  import pytest
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.shared.core.constants import SlotMappingType
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import UserUttered, ActiveLoop
  from rasa.shared.core.slot_mappings import SlotMapping
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.utils.validation import YamlValidationException
label_desc: Use image node_id 5 for calling a global function with example usage: test_slot_mappings_invalid_type_raises() without return types