human
Write a function to convert a snake case string to camel case string. Here is a solution in Python: Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
 def snake_to_camel(word):
        import re
        return ''.join(x.capitalize() or '_' for x in word.split('_'))