docstr: Convert annotation which can be polygons, uncompressed RLE, or RLE
  to binary mask.
  
  :return: binary mask (numpy 2D array)
docstr_tok: ["Convert","annotation","which","can","be","polygons",",","uncompressed","RLE",",","or","RLE","to","binary","mask",".",":","return",":","binary","mask","(","numpy","2D","array",")"]
code: def annToMask(self, ann, frameId):
      """Convert annotation which can be polygons, uncompressed RLE, or RLE
      to binary mask.
  
      :return: binary mask (numpy 2D array)
      """
      rle = self.annToRLE(ann, frameId)
      m = maskUtils.decode(rle)
      return m
  
imports: import copy
  import itertools
  import json
  import sys
  import time
  from collections import defaultdict
  import numpy
  from pycocotools import mask
label_desc: Use image node_id 11 for calling the YTVIS obj's underlying member method code with example usage: obj.annToMask(ann, frameId) and returns: m