human
Solve the following python programming problem given the following code:
def has_department(self, department_id) : 
    def department_ids(department) : 
        return department.id 
return (self in map (department_ids, self.departments)) 

    
    

    Fix the buggy line: return (self in map (department_ids, self.departments))
assistant
#Here is Python program to fix the buggy line: return (self in map (department_ids, self.

return (department_id in map (department_ids, self.departments))