def get_root_package_name(name):
    """
    Returns root package name.

    From `a.b.c` it returns `a.b`.

    :param str name: Full module name
    :return: Root package name.
    :rtype: str
    """
    return '.'.join(name.split('.')[:-1])
