def compare_modules(file_, imports):
    'Compare modules in a file to imported modules in a project.\n\n    Args:\n        file_ (str): File to parse for modules to be compared.\n        imports (tuple): Modules being imported in the project.\n\n    Returns:\n        tuple: The modules not imported in the project, but do exist in the\n               specified file.\n    '
    modules = parse_requirements(file_)
    imports = [imports[i]['name'] for i in range(len(imports))]
    modules = [modules[i]['name'] for i in range(len(modules))]
    modules_not_imported = (set(modules) - set(imports))
    return modules_not_imported
Compare modules in a file to imported modules in a project.

Args:
    file_ (str): File to parse for modules to be compared.
    imports (tuple): Modules being imported in the project.

Returns:
    tuple: The modules not imported in the project, but do exist in the
           specified file.
def compare_modules(file_, imports):
    'Compare modules in a file to imported modules in a project.\n\n    Args:\n        file_ (str): File to parse for modules to be compared.\n        imports (tuple): Modules being imported in the project.\n\n    Returns:\n        tuple: The modules not imported in the project, but do exist in the\n               specified file.\n    '
    modules = parse_requirements(file_)
    imports = [imports[i]['name'] for i in range(len(imports))]
    modules = [modules[i]['name'] for i in range(len(modules))]
    modules_not_imported = (set(modules) - set(imports))
    return modules_not_imported