code: def test_ignore_action_unlikely_intent(
      self,
      trained_policy: MemoizationPolicy,
      default_domain: Domain,
      tracker_events_with_action: List[Event],
      tracker_events_without_action: List[Event],
  ):
      tracker_with_action = DialogueStateTracker.from_events(
          "test 1",
          evts=tracker_events_with_action,
          slots=default_domain.slots,
      )
      tracker_without_action = DialogueStateTracker.from_events(
          "test 2",
          evts=tracker_events_without_action,
          slots=default_domain.slots,
      )
      prediction_with_action = (
          trained_policy.predict_action_probabilities(
              tracker_with_action, default_domain
          )
      )
      prediction_without_action = (
          trained_policy.predict_action_probabilities(
              tracker_without_action, default_domain
          )
      )
  
      # Memoization shouldn't be affected with the
      # presence of action_unlikely_intent.
      assert (
          prediction_with_action.probabilities
          == prediction_without_action.probabilities
      )
  
imports: import uuid
  from pathlib import Path
  from typing import Type, List, Text, Optional, Dict, Any
  import dataclasses
  import numpy
  import pytest
  from _pytest.tmpdir import TempPathFactory
  from rasa.engine.graph import ExecutionContext, GraphSchema
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.constants import DEFAULT_SENDER_ID
  from rasa.shared.core.constants import ACTION_LISTEN_NAME, ACTION_UNLIKELY_INTENT_NAME
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import ActionExecuted, Event, UserUttered, EntitiesAdded, SlotSet
  from rasa.core import training
  from rasa.core.constants import POLICY_MAX_HISTORY
  from rasa.core.featurizers.tracker_featurizers import TrackerFeaturizer, MaxHistoryTrackerFeaturizer, IntentMaxHistoryTrackerFeaturizer
  from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer, IntentTokenizerSingleStateFeaturizer
  from rasa.core.policies.policy import SupportedData, InvalidPolicyConfig, Policy
  from rasa.core.policies.rule_policy import RulePolicy
  from rasa.core.policies.ted_policy import TEDPolicy
  from rasa.core.policies.memoization import AugmentedMemoizationPolicy, MemoizationPolicy
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.generator import TrackerWithCachedStates
  from tests.dialogues import TEST_DEFAULT_DIALOGUE
  from tests.core.utilities import get_tracker, tracker_from_dialogue
label_desc: Use image node_id 7 for calling the TestMemoizationPolicy obj's underlying member method code with example usage: obj.test_ignore_action_unlikely_intent(trained_policy, default_domain, tracker_events_with_action, tracker_events_without_action) without return types