def keplermag_to_keplerflux(keplermag, f12=174000.0):
    """This converts the Kepler mag back to Kepler flux.

    Parameters
    ----------

    keplermag : float or array-like
        The Kepler magnitude value(s) to convert to fluxes.

    f12 : float
        The flux value in the Kepler band corresponding to Kepler mag = 12.0.

    Returns
    -------

    np.array
        Fluxes in the Kepler band corresponding to the input `keplermag`
        magnitude value(s).

    """
    kepflux = 10.0 ** (-0.4 * (keplermag - 12.0)) * f12
    return kepflux
