code: def _check_masks_intersection(
      self, aug_mask, total_mask_area, prev_masks
  ):
      for existing_mask in prev_masks:
          intersection_area = self._get_intersection(
              existing_mask, aug_mask
          ).sum()
          intersection_existing = (
              intersection_area / existing_mask.sum()
          )
          intersection_current = (
              1
              - (aug_mask.area() - intersection_area) / total_mask_area
          )
          if (intersection_existing > self.max_mask_intersection) or (
              intersection_current > self.max_mask_intersection
          ):
              return False
      return True
  
imports: import enum
  from copy import deepcopy
  import numpy
  from skimage import img_as_ubyte
  from skimage.transform import rescale, resize
  from .countless2d import zero_corrected_countless
label_desc: Use image node_id 8 for calling the SegmentationMask obj's underlying member method code with example usage: obj._check_masks_intersection(aug_mask, total_mask_area, prev_masks) and returns: True, False