<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def background_cutout_ma(self):
 """ A 2D `~numpy.ma.MaskedArray` cutout from the input ``background``. 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 ``background`` is `None`, then ``background_cutout_ma`` is also `None`. """


        if self._background is None:
            return None
        else:
            return np.ma.masked_array(self._background[self._slice],
                                      mask=self._total_mask)