def module_name_split(name):
    """
    Split the module name into package name and module name.
    """
    if '.' in name:
        package_name, module = name.rsplit('.', 1)
    else:
        package_name, module = '', name
    return package_name, module
