code: def plot_curve(
      output_directory: Text,
      number_of_examples: List[int],
      x_label_text: Text,
      y_label_text: Text,
      graph_path: Text,
  ) -> None:
      """Plot the results from a model comparison.
  
      Args:
          output_directory: Output directory to save resulting plots to
          number_of_examples: Number of examples per run
          x_label_text: text for the x axis
          y_label_text: text for the y axis
          graph_path: output path of the plot
      """
      import matplotlib.pyplot as plt
  
      plt.gcf().clear()
  
      ax = plt.gca()
  
      # load results from file
      data = rasa.shared.utils.io.read_json_file(
          os.path.join(output_directory, RESULTS_FILE)
      )
      x = number_of_examples
  
      # compute mean of all the runs for different configs
      for label in data.keys():
          if len(data[label]) == 0:
              continue
          mean = np.mean(data[label], axis=0)
          std = np.std(data[label], axis=0)
          ax.plot(x, mean, label=label, marker=".")
          ax.fill_between(
              x,
              [m - s for m, s in zip(mean, std)],
              [m + s for m, s in zip(mean, std)],
              color="#6b2def",
              alpha=0.2,
          )
      ax.legend(loc=4)
  
      ax.set_xlabel(x_label_text)
      ax.set_ylabel(y_label_text)
  
      plt.savefig(graph_path, format="pdf")
  
      logger.info(f"Comparison graph saved to '{graph_path}'.")
  
file_path: rasa/rasa/utils/plotting.py
imports: import logging
  import itertools
  import os
  from functools import wraps
  import numpy
  from typing import Any, Callable, List, Optional, Text, TypeVar, Union, Tuple
  import matplotlib
  from matplotlib.ticker import FormatStrFormatter
  import rasa.shared.utils.io
  from rasa.constants import RESULTS_FILE
label_desc: Use image node_id 6 for calling a global function with example usage: plot_curve(output_directory, number_of_examples, x_label_text, y_label_text, graph_path) without return types