human
Solve the following python programming problem given the following code:
def _validator(code_or_name, validator_type) : 
    if (code_or_name == 'error') : 
        from.errors import codes 
        from.errors import EXT 
else : 
        if (validator_type == 'warning') : 
            from.warnings import codes 
            from.warnings import EXT 
else : 
            pass 
def decorator(func) : 
        def wrapper(* args, **kw) : 
            extra = func (* args, ** kw) 
            if (extra is None) : 
                return [] 
if isinstance (code_or_name, string_types) : 
                code = EXT 
                name = ((codes [code] [0] + ':') + code_or_name) 
else : 
                code = code_or_name 
                name = codes [code] [0] 
text = codes [code] [1] 
            return [(code, name, text, extra)] 
wrapper.validator_type = validator_type 
        return wrapper 
return decorator 

    
    

    Fix the buggy line: if (code_or_name == 'error') :
assistant
#Here is Python program to fix the buggy line: if (code_or_name == 'error') :
.

if (validator_type == 'error') :