class_docstr: Subclass of QGroupBox that implements collapse handle.
      
class_docstr_tok: ["Subclass","of","QGroupBox","that","implements","collapse","handle","."]
code: def toggleCollapsed(self):
      self.setCollapsed(not self._collapsed)
  
file_path: pyqtgraph/pyqtgraph/widgets/GroupBox.py
imports: from ..Qt import QtCore, QtGui, QtWidgets
  from .PathButton import PathButton
label_desc: Use image node_id 2 for calling the GroupBox obj's underlying member method code with example usage: obj.toggleCollapsed() without return types