human
Solve the following python programming problem given the following code:
def remove_imports(partitions, to_remove = ()) : 
    to_remove_imports = set ((import_obj_from_str (to_remove) for imp_statement in to_remove)) 
    def _inner() : 
        for partition in partitions : 
            if ((partition.code_type is not CodeType.IMPORT) or (import_obj_from_str (partition.src) not in to_remove_imports)) : 
                (yield partition) 
return list (_inner ()) 

    
    

    Fix the buggy line: to_remove_imports = set ((import_obj_from_str (to_remove) for imp_statement in to_remove))
assistant
#Here is Python program to fix the buggy line: to_remove_imports = set ((import_obj_from_str (to_remove) for imp_statement in to_remove))
.

to_remove_imports = set ((import_obj_from_str (imp_statement) for imp_statement in to_remove))