class_docstr: Polygon representation of a mask
  
  # Arguments
      points: The vertices of the polygon in the COCO standard format.
code: def to_erles(self, h, w) -> EncodedRLEs:
      erles = mask_utils.frPyObjects(self.points, h, w)
      erle = mask_utils.merge(
          erles
      )  # make unconnected polygons a single mask
      return EncodedRLEs([erle])
  
imports: from icevision.imports import *
  from icevision.utils import *
  from PIL import Image
label_desc: Use image node_id 3 for calling the Polygon obj's underlying member method code with example usage: obj.to_erles(h, w) and returns: EncodedRLEs