code: def assertTableData(table, data):
      assert len(data) == table.rowCount()
      rows = list(range(table.rowCount()))
      columns = list(range(table.columnCount()))
      for r in rows:
          assert len(data[r]) == table.columnCount()
          row = []
          for c in columns:
              item = table.item(r, c)
              if item is not None:
                  row.append(item.value)
              else:
                  row.append(None)
          assert row == list(data[r])
  
imports: from collections import OrderedDict
  import numpy
  import pyqtgraph
label_desc: Use image node_id 1 for calling a global function with example usage: assertTableData(table, data) without return types