code: def apply(self, image, hlabel, mask_name, h_pos, **params):
      # print(params.keys())
      # hlabel = params.get('hlabel')
      assert (
          len(hlabel) == 237 or len(hlabel) == 235
      ), "make sure the rec dataset includes mask params"
      if len(hlabel) == 237:
          if hlabel[1] < 0.0:
              return image
          hlabel = hlabel[2:]
      # print(len(hlabel))
      mask_params = self.renderer.decode_params(hlabel)
      image = self.renderer.render_mask(
          image,
          mask_name,
          mask_params,
          input_is_rgb=True,
          positions=[0.1, h_pos, 0.9, 0.7],
      )
      return image
  
imports: import os, sys, datetime
  import numpy
  import os.path
  import albumentations
  from albumentations.core.transforms_interface import ImageOnlyTransform
  from .face_analysis import FaceAnalysis
  from ..utils import get_model_dir
  from ..thirdparty import face3d
  from ..data import get_image
  from ..utils import DEFAULT_MP_NAME
  import cv2
label_desc: Use image node_id 2 for calling the MaskAugmentation obj's underlying member method code with example usage: obj.apply(image, hlabel, mask_name, h_pos) and returns: image, image