code: def test_slot_mappings_ignored_intents_during_active_loop():
      domain = Domain.from_yaml(
          """
      version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
      intents:
      - greet
      - chitchat
      slots:
        cuisine:
          type: text
          mappings:
          - type: from_text
            conditions:
            - active_loop: restaurant_form
      forms:
        restaurant_form:
          ignored_intents:
          - chitchat
          required_slots:
          - cuisine
      """
      )
      tracker = DialogueStateTracker("sender_id", slots=domain.slots)
      event1 = ActiveLoop("restaurant_form")
      event2 = UserUttered(
          text="The weather is sunny today",
          intent={"name": "chitchat", "confidence": 0.9604260921478271},
          entities=[],
      )
      tracker.update_with_events([event1, event2], domain)
      mappings_for_cuisine = (
          domain.as_dict().get("slots").get("cuisine").get("mappings")
      )
      assert (
          SlotMapping.intent_is_desired(
              mappings_for_cuisine[0], tracker, domain
          )
          is False
      )
  
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 3 for calling a global function with example usage: test_slot_mappings_ignored_intents_during_active_loop() without return types