class_docstr: Widget for displaying differences between hierarchical python data structures
  (eg, nested dicts, lists, and arrays)
code: def compareArrays(self, a, b):
      intnan = (
          -9223372036854775808
      )  # happens when np.nan is cast to int
      anans = np.isnan(a) | (a == intnan)
      bnans = np.isnan(b) | (b == intnan)
      eq = anans == bnans
      mask = ~anans
      eq[mask] = np.allclose(a[mask], b[mask])
      return eq
  
file_path: pyqtgraph/pyqtgraph/widgets/DiffTreeWidget.py
imports: import numpy
  from ..None import functions
  from ..Qt import QtWidgets
  from .DataTreeWidget import DataTreeWidget
label_desc: Use image node_id 4 for calling the DiffTreeWidget obj's underlying member method code with example usage: obj.compareArrays(a, b) and returns: eq