def METHOD_NAME(
        self, create_rai_insights_object_regression_with_model,
        create_rai_insights_object_regression_with_predictions,
        with_model):
    if with_model:
        ri = create_rai_insights_object_regression_with_model
    else:
        ri = create_rai_insights_object_regression_with_predictions
    id = ri.causal.get()[0].id
    causal_whatif_test_data = ri.test.head(1).drop(
        "target", axis=1).to_dict(orient='records')
    treatment_feature = 'AveRooms'
    current_treatment_value = [causal_whatif_test_data[0][
        treatment_feature]]
    current_outcome = [ri.test.head(1)["target"].values[0]]
    dashboard_input = ResponsibleAIDashboardInput(ri)
    post_data = [id, causal_whatif_test_data,
                 treatment_feature, current_treatment_value,
                 current_outcome]
    flask_server_prediction_output = dashboard_input.causal_whatif(
        post_data)
    self.check_success_criteria(flask_server_prediction_output)