human
How can I convert literal escape sequences in a string to the corresponding bytes?
assistant
Here is some code to encode string "\\xc3\\x85あ" to bytes

"""\\xc3\\x85あ""".encode('utf-8')

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