def get_package_name(name):
    """
    Returns package name.

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

    :param str name: Full module name
    :return: Package name.
    :rtype: str
    """
    return name.split('.')[-2]
