def METHOD_NAME(image, name, label=None, label_color="w", label_size="large"):
    """
    This will plot the r,g,b channels of an *image* of shape (N,M,3) or
    (N,M,4).  *name* is the prefix of the file name, which will be supplemented
    with "_rgb.png."  *label*, *label_color* and *label_size* may also be
    specified.
    """
    import matplotlib.pyplot as plt
    Nvec = image.shape[0]
    image[np.isnan(image)] = 0.0
    if image.shape[2] >= 4:
        image = image[:, :, :3]
    fig = plt.gcf()
    ax = plt.gca()
    fig.clf()
    fig.set_dpi(100)
    fig.set_size_inches((Nvec / 100.0, Nvec / 100.0))
    fig.subplots_adjust(
        left=0.0, right=1.0, bottom=0.0, top=1.0, wspace=0.0, hspace=0.0
    )
    ax.imshow(image, interpolation="nearest")
    if label is not None:
        ax.text(20, 20, label, color=label_color, size=label_size)
    fig.savefig(f"{name}_rgb.png")
    fig.clf()