code: def test_opts():
      paramSpec = [
          dict(name="bool", type="bool", readonly=True),
          dict(name="color", type="color", readonly=True),
      ]
  
      param = pt.Parameter.create(
          name="params", type="group", children=paramSpec
      )
      tree = pt.ParameterTree()
      tree.setParameters(param)
  
      assert _getWidget(param.param("bool")).isEnabled() is False
      assert _getWidget(param.param("bool")).isEnabled() is False
  
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 2 for calling a global function with example usage: test_opts() without return types