code: def plot_core_results(
      output_directory: Text, number_of_examples: List[int]
  ) -> None:
      """Plot core model comparison graph.
  
      Args:
          output_directory: path to the output directory
          number_of_examples: number of examples per run
      """
      import rasa.utils.plotting as plotting_utils
  
      graph_path = os.path.join(
          output_directory, "core_model_comparison_graph.pdf"
      )
  
      plotting_utils.plot_curve(
          output_directory,
          number_of_examples,
          x_label_text="Number of stories present during training",
          y_label_text="Number of correct test stories",
          graph_path=graph_path,
      )
  
imports: import copy
  import logging
  import os
  from typing import Text, Dict, Optional, List, Any, Iterable, Tuple, Union
  from pathlib import Path
  from rasa.core.agent import Agent
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  import rasa.shared.utils.cli
  import rasa.shared.utils.common
  import rasa.shared.utils.io
  import rasa.utils.common
  from rasa.constants import RESULTS_FILE, NUMBER_OF_TRAINING_STORIES_FILE
  from rasa.exceptions import ModelNotFound
  from rasa.shared.constants import DEFAULT_RESULTS_PATH
  import rasa.shared.nlu.training_data.loading
  from rasa.shared.data import TrainingType
  from rasa.shared.nlu.training_data.training_data import TrainingData
  import rasa.model
label_desc: Use image node_id 1 for calling a global function with example usage: plot_core_results(output_directory, number_of_examples) without return types