import re


def convert_to_snake_case(value: str) -> str:
    """Convert any camel case attribute name to snake case

    Args:
        value: The key to be converted to snake case

    Returns:
        The converted key
    """
    return re.compile(r"(.)([A-Z][a-z]+)").sub(r"\1_\2", value).lower()