code: def blend_mask(image, mask, alpha=0.6):
      if mask.min() == -1:
          mask = mask.copy() + 1
  
      imap = draw_instance_map(mask)
      result = (image * (1 - alpha) + alpha * imap).astype(np.uint8)
      return result
  
file_path: PaddleSeg/EISeg/eiseg/util/vis.py
imports: from functools import lru_cache
  import cv2
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: blend_mask(image, mask, alpha) and returns: result