code: def get_targets(self, sampling_results, gt_masks, rcnn_train_cfg):
      pos_proposals = [res.pos_bboxes for res in sampling_results]
      pos_assigned_gt_inds = [
          res.pos_assigned_gt_inds for res in sampling_results
      ]
      mask_targets = mask_target(
          pos_proposals, pos_assigned_gt_inds, gt_masks, rcnn_train_cfg
      )
      return mask_targets
  
file_path: insightface/detection/scrfd/mmdet/models/roi_heads/mask_heads/fcn_mask_head.py
imports: import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from mmcv.cnn import Conv2d, ConvModule, build_upsample_layer
  from mmcv.ops.carafe import CARAFEPack
  from mmcv.runner import auto_fp16, force_fp32
  from torch.nn.modules.utils import _pair
  from mmdet.core import mask_target
  from mmdet.models.builder import HEADS, build_loss
label_desc: Use image node_id 4 for calling the FCNMaskHead obj's underlying member method code with example usage: obj.get_targets(sampling_results, gt_masks, rcnn_train_cfg) and returns: mask_targets