code: def test_qpainterpathprivate_read():
      x0, y0 = 100, 200
      size = 100
  
      qpath = QtGui.QPainterPath()
      qpath.moveTo(x0, y0)
      for idx in range(1, size):
          qpath.lineTo(x0 + idx, y0 + idx)
  
      memory = pg.Qt.internals.get_qpainterpath_element_array(qpath)
      assert len(memory) == size
      assert np.all(memory["x"] == np.arange(x0, x0 + size))
      assert np.all(memory["y"] == np.arange(y0, y0 + size))
      assert memory["c"][0] == 0
      assert np.all(memory["c"][1:] == 1)
  
imports: import numpy
  import pytest
  import pyqtgraph
  from pyqtgraph.Qt import QtGui
label_desc: Use image node_id 1 for calling a global function with example usage: test_qpainterpathprivate_read() without return types