code: def draw_mask(ax, mask, color):
      color_mask = np.ones((*mask.shape, 3)) * color
      ax.imshow(np.dstack((color_mask, mask * 0.5)))
      ax.contour(mask, colors=[color_mask[0, 0, :]], alpha=0.4)
  
file_path: icevision/icevision/visualize/utils.py
imports: from icevision.imports import *
  from icevision.utils import *
  from matplotlib import patches
  from PIL import Image, ImageFont, ImageDraw
  import PIL
label_desc: Use image node_id 3 for calling a global function with example usage: draw_mask(ax, mask, color) without return types