def zoomed_scaled_array_around_mask(self, mask, buffer=<NUM_LIT:1>):
return self.new_with_array(array=array_util.extracted_array_2d_from_array_2d_and_coordinates(<EOL>array_2d=self,  y0=mask.zoom_region[<NUM_LIT:0>]-buffer, y1=mask.zoom_region[<NUM_LIT:1>]+buffer,<EOL>x0=mask.zoom_region[<NUM_LIT:2>]-buffer, x1=mask.zoom_region[<NUM_LIT:3>]+buffer))<EOL>
Extract the 2D region of an array corresponding to the rectangle encompassing all unmasked values.

        This is used to extract and visualize only the region of an image that is used in an analysis.

        Parameters
        ----------
        mask : mask.Mask
            The mask around which the scaled array is extracted.
        buffer : int
            The buffer of pixels around the extraction.