code: def test_init_with_qwidget_arguments():
      """
      Ensures providing only the parent argument to the constructor properly
      intializes the widget to match the QWidget constructor prototype.
      """
      win = QtWidgets.QMainWindow()
  
      mplw = MatplotlibWidget(win)
  
      assert_widget_fields(mplw, win, default_figsize, default_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 2 for calling a global function with example usage: test_init_with_qwidget_arguments() without return types