def METHOD_NAME(
    data,
    dialect="excel",
    delimiter=",",
    quoting: int = QUOTE_MINIMAL,
    pad_spaces: bool = False,
):
    return Response(
        stream_with_context(iter_csv(data, dialect, delimiter, quoting, pad_spaces)),
        mimetype="text/plain",
    )