code: def test_checklist_show_hide():
      p = pt.Parameter.create(
          name="checklist", type="checklist", limits=["a", "b", "c"]
      )
      pi = ChecklistParameterItem(p, 0)
      pi.setHidden = MagicMock()
      p.hide()
      pi.setHidden.assert_called_with(True)
      assert not p.opts["visible"]
      p.show()
      pi.setHidden.assert_called_with(False)
      assert p.opts["visible"]
  
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 7 for calling a global function with example usage: test_checklist_show_hide() without return types