code: def _get_segmentation_id(self, netid, segid, source):
          
  
          return self.seg_drvr.allocate_segmentation_id(netid, seg_id=segid,
                                                        source=source)
docs: Allocate segmentation id.