code: def test_MatplotlibExporter():
      plt = pg.PlotWidget()
      plt.show()
  
      # curve item
      plt.plot([0, 1, 2], [0, 1, 2])
      # scatter item
      plt.plot([0, 1, 2], [1, 2, 3], pen=None, symbolBrush="r")
      # curve + scatter
      plt.plot([0, 1, 2], [2, 3, 4], pen="k", symbolBrush="r")
  
      exp = MatplotlibExporter(plt.getPlotItem())
      exp.export()
  
file_path: pyqtgraph/tests/exporters/test_matplotlib.py
imports: from importlib.metadata import version
  import pytest
  import pyqtgraph
  from pyqtgraph.exporters import MatplotlibExporter
  import matplotlib
label_desc: Use image node_id 1 for calling a global function with example usage: test_MatplotlibExporter() without return types