parameters: (input_str: str)
return_statement: return _TRAILING_CAPITAL_REGEX.sub(r'\1_\2', tmp).lower()
docstring: Transforms a camelCase/UpperCamelCase string into a snake_case string.
docstring_summary: Transforms a camelCase/UpperCamelCase string into a snake_case string.
docstring_tokens: Transforms a camelCase / UpperCamelCase string into a snake_case string .
function: def camel_case_to_snake_case(input_str: str) -> str:
    """Transforms a camelCase/UpperCamelCase string into a snake_case string."""
    tmp = _CAMELCASE_BOUNDARY_REGEX.sub(r'\1_\2', input_str)
    return _TRAILING_CAPITAL_REGEX.sub(r'\1_\2', tmp).lower()
function_tokens: def camel_case_to_snake_case ( input_str : str ) -> str : tmp = _CAMELCASE_BOUNDARY_REGEX . sub ( r'\1_\2' , input_str ) return _TRAILING_CAPITAL_REGEX . sub ( r'\1_\2' , tmp ) . lower ( )