code: def _uniform_sample_train_points(self, instances):
      assert self.training
      # Please keep in mind that "gt_masks" is not used in this mask head.
      (
          point_coords,
          point_labels,
      ) = get_point_coords_from_point_annotation(instances)
  
      return point_coords, point_labels
  
file_path: detectron2/projects/PointSup/point_sup/mask_head.py
imports: import numpy
  from typing import Any, List
  from detectron2.modeling import ROI_MASK_HEAD_REGISTRY
  from detectron2.modeling.roi_heads.mask_head import MaskRCNNConvUpsampleHead, mask_rcnn_inference
  from detectron2.projects.point_rend import ImplicitPointRendMaskHead
  from detectron2.projects.point_rend.point_features import point_sample
  from detectron2.projects.point_rend.point_head import roi_mask_point_loss
  from detectron2.structures import Instances
  from .point_utils import get_point_coords_from_point_annotation
label_desc: Use image node_id 1 for calling the ImplicitPointRendPointSupHead obj's underlying member method code with example usage: obj._uniform_sample_train_points(instances) and returns: point_coords,  point_labels