import re


def snake_case(camel_case):
    """
    Transform camel was to snake case
    :param camel_case:      Camel case string
    :type  camel_case:      str
    :return:                Snake case string
    :rtype:                 str
    """

    snake_case = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', camel_case)
    snake_case = re.sub('([a-z0-9])([A-Z])', r'\1_\2', snake_case).lower()

    return snake_case