code: def load_mask(path):
      alpha = imageio.imread(path, as_gray=True)
      alpha = skimage.img_as_float32(alpha)
      object_mask = alpha > 127.5
  
      return object_mask
  
file_path: insightface/reconstruction/PBIDR/code/utils/rend_util.py
imports: import numpy
  import imageio
  import skimage
  import cv2
  import torch
  from torch.nn import functional
label_desc: Use image node_id 2 for calling a global function with example usage: load_mask(path) and returns: object_mask