def compare_modules(file_, imports):
modules = parse_requirements(file_)<EOL>imports = [imports[i]["<STR_LIT:name>"] for i in range(len(imports))]<EOL>modules = [modules[i]["<STR_LIT:name>"] for i in range(len(modules))]<EOL>modules_not_imported = set(modules) - set(imports)<EOL>return modules_not_imported<EOL>
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.