import re from dataclasses import dataclass def to_snake_case(s): return re.sub(r"(?