def engine_map_modelfunc(coeff_values, X):
    """
    The function that models the engine-map.
    """
    a = coeff_values['a']
    b = coeff_values['b']
    c = coeff_values['c']
    a2 = coeff_values['a2']
    b2 = coeff_values['b2']
    loss0 = coeff_values['loss0']
    loss2 = coeff_values['loss2']
    pmf = X['pmf']
    cm = X['cm']
    bmep = (a + b * cm + c * cm ** 2) * pmf + (a2 + b2 * cm
        ) * pmf ** 2 + loss0 + loss2 * cm ** 2
    return bmep
