def METHOD_NAME(name: str) -> str:
    """Convert string camelCase to snake_case.
    Reference: https://stackoverflow.com/a/1176023/5056599 CC BY-SA 4.0
    Example:
    >>> _camel_to_snake('camelCase')
    'camel_case'
    Parameters
    ----------
    name : str
        String using camelCase formatting.
    Returns
    -------
    str:
        String using snake_case formatting.
    """
    name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
    return re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()