def METHOD_NAME(
    self,
    path=None,
    *,
    size=None,
    scale=None,
    canvas_only=True,
    flash: bool = True,
):
    """Take currently displayed screen and convert to an image array.
    Parameters
    ----------
    path : str
        Filename for saving screenshot image.
    size : tuple (int, int)
        Size (resolution height x width) of the screenshot. By default, the currently displayed size.
        Only used if `canvas_only` is True.
    scale : float
        Scale factor used to increase resolution of canvas for the screenshot. By default, the currently displayed resolution.
        Only used if `canvas_only` is True.
    canvas_only : bool
        If True, screenshot shows only the image display canvas, and
        if False include the napari viewer frame in the screenshot,
        By default, True.
    flash : bool
        Flag to indicate whether flash animation should be shown after
        the screenshot was captured.
        By default, True.
    Returns
    -------
    image : array
        Numpy array of type ubyte and shape (h, w, 4). Index [0, 0] is the
        upper-left corner of the rendered region.
    """
    return self.window.METHOD_NAME(
        path=path,
        size=size,
        scale=scale,
        flash=flash,
        canvas_only=canvas_only,
    )