class_docstr: Extends QTableWidget with some useful functions for automatic data handling
  and copy / export context menu. Can automatically format and display a variety
  of data types (see :func:`setData() <pyqtgraph.TableWidget.setData>` for more
  information.
docstr: Clear all contents from the table.
docstr_tok: ["Clear","all","contents","from","the","table","."]
code: def clear(self):
      """Clear all contents from the table."""
      QtWidgets.QTableWidget.clear(self)
      self.verticalHeadersSet = False
      self.horizontalHeadersSet = False
      self.items = []
      self.setRowCount(0)
      self.setColumnCount(0)
      self.sortModes = {}
  
imports: import numpy
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 2 for calling the TableWidget obj's underlying member method code with example usage: obj.clear() without return types