code: def polyline_from_points(points):
      poly = pv.PolyData()
      poly.points = points
      the_cell = np.arange(0, len(points), dtype=np.int_)
      the_cell = np.insert(the_cell, 0, len(points))
      poly.lines = the_cell
      return poly
  
imports: import numpy
  import pyvista
label_desc: Use image node_id 3 for calling a global function with example usage: polyline_from_points(points) and returns: poly