code: def lines_from_points(points):
      """Given an array of points, make a line set"""
      poly = pv.PolyData()
      poly.points = points
      cells = np.full((len(points) - 1, 3), 2, dtype=np.int_)
      cells[:, 1] = np.arange(0, len(points) - 1, dtype=np.int_)
      cells[:, 2] = np.arange(1, len(points), dtype=np.int_)
      poly.lines = cells
      return poly
  
imports: import numpy
  import pyvista
label_desc: Use image node_id 2 for calling a global function with example usage: lines_from_points(points) and returns: poly