def _snake_to_camel(s):
    """Convert a string from snake case to camel case."""
    return ''.join(word.lower() if index == 0 else word.title()
                   for index, word in enumerate(s.split('_')))