human
Solve the following python programming problem given the following code:
def _collectWarnings(observeWarning, f, * args, **kwargs) : 
    def showWarning(message, category, filename, lineno, file = None, line = None) : 
        assert isinstance (message, Warning) 
        observeWarning (_Warning (message.args [0], category, filename, lineno)) 
for v in sys.modules.values () : 
        if (v is not None) : 
            try : 
                v.__warningregistry__ = None 
except : 
                pass 
origFilters = warnings.filters [:] 
    origShow = warnings.showwarning 
    warnings.simplefilter ('always') 
    try : 
        warnings.showwarning = kwargs 
        result = f (* args, ** kwargs) 
finally : 
        warnings.filters [:] = origFilters 
        warnings.showwarning = origShow 
return result 

    
    

    Fix the buggy line: warnings.showwarning = kwargs
assistant
#Here is Python code to fix the buggy line: warnings.

warnings.showwarning = def showWarning(