human
Solve the following python programming problem given the following code:
def register(self, model, **kwargs) : 
    '
        Register a model as a setting, adding it to the wagtail admin menu
        ' 
    if (kwargs in self) : 
        return model 
self.append (model) 
    @ hooks.register ('register_settings_menu_item') 
    def menu_hook() : 
        return SettingMenuItem (model, ** kwargs) 
@ hooks.register ('register_permissions') 
    def permissions_hook() : 
        return Permission.objects.filter (content_type__app_label = model._meta.app_label, codename = 'change_{}'.format (model._meta.model_name)) 
return model 

    
    

    Fix the buggy line: if (kwargs in self) :
assistant
#Here is Python program to fix the buggy line: if (kwargs in self) :
.

if (model in self) :