code: def get_unresolved_slots(
      domain: Domain, stories: StoryGraph
  ) -> List[Text]:
      """Returns a list of unresolved slots.
  
      Args:
          domain: The domain.
          stories: The story graph.
  
      Returns:
          A list of unresolved slots.
      """
      return list(
          set(
              evnt.key
              for step in stories.story_steps
              for evnt in step.events
              if isinstance(evnt, SlotSet)
          )
          - set(slot.name for slot in domain.slots)
      )
  
imports: import time
  from pathlib import Path
  from typing import Text, NamedTuple, Optional, List, Union, Dict, Any
  import randomname
  import rasa.engine.validation
  from rasa.engine.caching import LocalTrainingCache
  from rasa.engine.recipes.recipe import Recipe
  from rasa.engine.runner.dask import DaskGraphRunner
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.training.components import FingerprintStatus
  from rasa.engine.training.graph_trainer import GraphTrainer
  from rasa.shared.core.events import SlotSet
  from rasa.shared.core.training_data.structures import StoryGraph
  from rasa.shared.data import TrainingType
  from rasa.shared.importers.importer import TrainingDataImporter
  from rasa import telemetry
  from rasa.shared.core.domain import Domain
  import rasa.utils.common
  import rasa.shared.utils.common
  import rasa.shared.utils.cli
  import rasa.shared.exceptions
  import rasa.shared.utils.io
  import rasa.shared.constants
  import rasa.model
label_desc: Use image node_id 2 for calling a global function with example usage: get_unresolved_slots(domain, stories) and returns: list