code: def make_cutout(self, data, masked_array=False):
          
  
          data = np.asanyarray(data)
          if data.shape != self._segment_img.shape:
              raise ValueError('data must have the same shape as the '
                               'segmentation image input to SourceProperties')
  
          if masked_array:
              return np.ma.masked_array(data[self._slice],
                                        mask=self._total_mask)
          else:
              return data[self._slice]
docs: Create a (masked) cutout array from the input ``data`` using the
          minimal bounding box of the source segment.
  
          If ``masked_array`` is `False` (default), then the returned
          cutout array is simply a `~numpy.ndarray`.  The returned cutout
          is a view (not a copy) of the input ``data``.  No pixels are
          altered (e.g. set to zero) within the bounding box.
  
          If ``masked_array` is `True`, then the returned cutout array is
          a `~numpy.ma.MaskedArray`.  The mask is `True` for pixels
          outside of the source segment (labeled region of interest),
          masked pixels from the ``mask`` input, or any non-finite
          ``data`` values (e.g. NaN or inf).  The data part of the masked
          array is a view (not a copy) of the input ``data``.
  
          Parameters
          ----------
          data : array-like (2D)
              The data array from which to create the masked cutout array.
              ``data`` must have the same shape as the segmentation image
              input into `SourceProperties`.
  
          masked_array : bool, optional
              If `True` then a `~numpy.ma.MaskedArray` will be returned,
              where the mask is `True` for pixels outside of the source
              segment (labeled region of interest), masked pixels from the
              ``mask`` input, or any non-finite ``data`` values (e.g. NaN
              or inf).  If `False`, then a `~numpy.ndarray` will be
              returned.
  
          Returns
          -------
          result : 2D `~numpy.ndarray` or `~numpy.ma.MaskedArray`
              The 2D cutout array.