import re


def camel_to_snake_case(in_str):
    """
    Convert camel case to snake case

    :param in_str: camel case formatted string
    :return snake case formatted string
    """
    return '_'.join(re.split('(?=[A-Z])', in_str)).lower()