def get_mask(self):
        """Returns the segmentation mask for this instance.

        Returns:
            a numpy array, or ``None``
        """
        if self.mask is not None:
            return self.mask

        if self.mask_path is not None:
            return _read_mask(self.mask_path)

        return None
Returns the segmentation mask for this instance.

        Returns:
            a numpy array, or ``None``
        
fiftyone/core/labels.py