code: def polygon_to_bitmap(polygons, height, width):
      """Convert masks from the form of polygons to bitmaps.
  
      Args:
          polygons (list[ndarray]): masks in polygon representation
          height (int): mask height
          width (int): mask width
  
      Return:
          ndarray: the converted masks in bitmap representation
      """
      rles = maskUtils.frPyObjects(polygons, height, width)
      rle = maskUtils.merge(rles)
      bitmap_mask = maskUtils.decode(rle).astype(np.bool)
      return bitmap_mask
  
imports: from abc import ABCMeta, abstractmethod
  import cv2
  import mmcv
  import numpy
  import pycocotools.mask
  import torch
  from mmcv.ops.roi_align import roi_align
label_desc: Use image node_id 1 for calling a global function with example usage: polygon_to_bitmap(polygons, height, width) and returns: bitmap_mask