code: def show_mask(mask, ax, random_color=False):
      if random_color:
          color = np.concatenate(
              [np.random.random(3), np.array([0.6])], axis=0
          )
      else:
          color = np.array([30 / 255, 144 / 255, 255 / 255, 0.6])
      h, w = mask.shape[-2:]
      mask_image = mask.reshape(h, w, 1) * color.reshape(1, 1, -1)
      ax.imshow(mask_image)
  
file_path: PaddleSeg/contrib/SegmentAnything/scripts/promt_predict.py
imports: import os
  import sys
  import argparse
  import paddle
  import cv2
  import numpy
  import matplotlib.pyplot
  from segment_anything.predictor import SamPredictor
  from segment_anything.build_sam import sam_model_registry
label_desc: Use image node_id 2 for calling a global function with example usage: show_mask(mask, ax, random_color) without return types