code: def read_notebook(path):
      """Read the metadata stored in the notebook's output source code.
  
      Args:
          path (str): Path to the notebook.
  
      Returns:
          dict: Dictionary of data stored in the notebook.
      """
      # Load the Jupyter Notebook
      with open(path, "r") as notebook_file:
          notebook_content = nbformat.read(notebook_file, as_version=4)
  
      # Search for parameters and store them in a dictionary
      results = {}
      for cell in notebook_content.cells:
          if cell.cell_type == "code" and "outputs" in cell:
              for outputs in cell.outputs:
                  if (
                      "metadata" in outputs
                      and "notebook_utils" in outputs.metadata
                  ):
                      name = outputs.data[NOTEBOOK_OUTPUT_CONTENT_TYPE][
                          "name"
                      ]
                      data = outputs.data[NOTEBOOK_OUTPUT_CONTENT_TYPE][
                          "data"
                      ]
                      results[name] = data
      return results
  
file_path: recommenders/recommenders/utils/notebook_utils.py
imports: import os
  import re
  import nbformat
  from nbconvert.preprocessors import ExecutePreprocessor
  from IPython.display import display
label_desc: Use image node_id 6 for calling a global function with example usage: read_notebook(path) and returns: results