human
python : how to convert string literal to raw string literal?
assistant
Here is some code to convert a string literal `s` with values `\\` to raw string literal

s = s.replace('\\', '\\\\')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.