code: def GetDensePoseMask(Polys):
      MaskGen = np.zeros([256, 256])
      for i in range(1, 15):
          if Polys[i - 1]:
              current_mask = mask_util.decode(Polys[i - 1])
              MaskGen[current_mask > 0] = i
      return MaskGen
  
file_path: dense-pose/detectron/utils/segms.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  import pycocotools.mask
label_desc: Use image node_id 1 for calling a global function with example usage: GetDensePoseMask(Polys) and returns: MaskGen