<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def raw_escape(pattern, unix=False):
 """Apply raw character transform before applying escape."""


    pattern = util.norm_pattern(pattern, False, True)
    return escape(pattern, unix)