code: def build_path(xs, ys, closed=True):
      line_tos = "".join([f"L{x} {y}" for x, y in zip(xs[1:], ys[1:])])
      path = f"M{xs[0]} {ys[0]}{line_tos}"
  
      if closed:
          path += "Z"
  
      return path
  
imports: import numpy
  import param
  from ...element import HLine, HSpan, Tiles, VLine, VSpan
  from ..mixins import GeomMixin
  from .element import ElementPlot
label_desc: Use image node_id 2 for calling the ShapePlot obj's underlying member method code with example usage: obj.build_path(xs, ys, closed) and returns: path