code: def test_init_with_matplotlib_arguments():
      """
      Tests the contructor that sets variables associated with Matplotlib and
      abstracts away any details about the underlying QWidget parent class.
      """
      figsize = (1.0, 3.0)
      dpi = 256
      mplw = MatplotlibWidget(figsize, dpi)
  
      assert_widget_fields(mplw, default_parent, figsize, dpi)
  
file_path: pyqtgraph/tests/widgets/test_matplotlibwidget.py
imports: from importlib.metadata import version
  import numpy
  import pytest
  import pyqtgraph
  from pyqtgraph.Qt import QtWidgets
  from pyqtgraph.widgets.MatplotlibWidget import MatplotlibWidget
label_desc: Use image node_id 3 for calling a global function with example usage: test_init_with_matplotlib_arguments() without return types