import re


def hump2underline(hump_str):
    """Convert the hump name to a snake shape.

    Args:
        hump_str (str): The name to be converted.

    Returns:
        str: Convert to a snake-like name.

    """
    # https://regex101.com/r/xZYoLp/1
    patt = re.compile(r"([a-z]|\d)([A-Z])")
    return re.sub(patt, r'\1_\2', hump_str).lower()