code: def test_slot_mappings_check_mapping_validity_invalid_intent_list():
      slot_name = "mood"
      domain = Domain.from_yaml(
          f"""
          version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
          intents:
          - greet
          - goodbye
          - mood_great
          - mood_unhappy
          slots:
            {slot_name}:
              type: any
              influence_conversation: false
              mappings:
              - type: from_intent
                value: "testing 123"
                intent:
                  - aaaa
                  - bbbb
                  - cccc
          forms:
              test_form:
                  required_slots:
                  - test_slot
          """
      )
      mappings_for_slot = (
          domain.as_dict().get("slots").get(slot_name).get("mappings")
      )
      assert not SlotMapping.check_mapping_validity(
          slot_name=slot_name,
          mapping_type=SlotMappingType.FROM_INTENT,
          mapping=mappings_for_slot[0],
          domain=domain,
      )
  
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 8 for calling a global function with example usage: test_slot_mappings_check_mapping_validity_invalid_intent_list() without return types