code: def postProcess(faceMask, hairMask):
      hairMask = hairMask.cpu().permute(1, 2, 0).detach().numpy()
      faceMask = faceMask.cpu().permute(1, 2, 0).detach().numpy()
      return faceMask, hairMask
  
file_path: insightface/reconstruction/ostec/external/graphonomy/FaceHairMask/MaskExtractor.py
imports: import torch
  from PIL import Image
  from torchvision.transforms import transforms
  from FaceHairMask import deeplab_xception_transfer
  from FaceHairMask.graphonomy_inference import inference
  import numpy
  import cv2
label_desc: Use image node_id 2 for calling a global function with example usage: postProcess(faceMask, hairMask) and returns: faceMask,  hairMask