<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compare_modules(file_, imports):
 """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. """

    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