code: def test_pen_settings():
      # Option from constructor
      p = pt.Parameter.create(
          name="test", type="pen", width=5, additionalname="test"
      )
      assert p.pen.width() == 5
      # Opts from dynamic update
      p.setOpts(width=3)
      assert p.pen.width() == 3
      # Opts from changing child
      p["width"] = 10
      assert p.pen.width() == 10
  
file_path: pyqtgraph/tests/parametertree/test_parametertypes.py
imports: from unittest.mock import MagicMock
  import numpy
  import pyqtgraph
  import pyqtgraph.parametertree
  from pyqtgraph.functions import eq
  from pyqtgraph.parametertree.parameterTypes import ChecklistParameterItem
  from pyqtgraph.Qt import QtCore, QtGui
label_desc: Use image node_id 8 for calling a global function with example usage: test_pen_settings() without return types