class_docstr: Run length encoding of a mask.
  
  Don't instantiate this class directly, instead use the classmethods
  `from_coco` and `from_kaggle`.
code: def to_erles(self, h, w) -> EncodedRLEs:
      return EncodedRLEs(
          mask_utils.frPyObjects(
              [{"counts": self.to_coco(), "size": [h, w]}], h, w
          )
      )
  
imports: from icevision.imports import *
  from icevision.utils import *
  from PIL import Image
label_desc: Use image node_id 4 for calling the RLE obj's underlying member method code with example usage: obj.to_erles(h, w) and returns: EncodedRLEs