code: def test_notebook_with_plot(tmp_directory, nb_plot):
      intr = NotebookIntrospector("nb_plot.ipynb")
      img = intr["a"]
      assert isinstance(img, Image)
      assert dict(intr) == {"b": 42, "a": img}
  
file_path: sklearn-evaluation/tests/nb/test_NotebookIntrospector.py
imports: from sklearn_evaluation import NotebookIntrospector
  from IPython.display import HTML, Image
label_desc: Use image node_id 2 for calling a global function with example usage: test_notebook_with_plot(tmp_directory, nb_plot) without return types