code: def bbox2path(xmin, xmax, ymin, ymax):
      
      b = Line(xmin + 1j*ymin, xmax + 1j*ymin)
      t = Line(xmin + 1j*ymax, xmax + 1j*ymax)
      r = Line(xmax + 1j*ymin, xmax + 1j*ymax)
      l = Line(xmin + 1j*ymin, xmin + 1j*ymax)
      return Path(b, r, t.reversed(), l.reversed())
docs: Converts a bounding box 4-tuple to a Path object.