def prefix_as_comment(comment_prefix, text):
    return text.replace('\n', '\n' + comment_prefix)
Adds comment prefixes to new lines in comments
dataset/ETHPy150Open bigmlcom/python/bigml/util.py/prefix_as_comment