<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raise_msg_to_str(msg):
 """msg is a return arg from a raise. Join with new lines"""

    if not is_string_like(msg):
        msg = '\n'.join(map(str, msg))
    return msg