import re from dataclasses import dataclass def to_camel_case(s): return "".join(word.title() for word in s.split("_")) def to_snake_case(s): return re.sub(r"(?