code: def to_polygon(self):
          
          x,y = self.corners.T
          vertices = PixCoord(x=x, y=y)
          return PolygonPixelRegion(vertices=vertices, meta=self.meta,
                                    visual=self.visual)
docs: Return a 4-cornered polygon equivalent to this rectangle