human
Solve the following python programming problem given the following code:
@ classmethod 
def from_config(cls, config) : 
    'Supports legacy formats
        ' 
    from keras.utils.layer_utils import layer_from_config 
    from keras.layers import Merge 
    assert (type (config) is list) 
    def normalize_legacy_config(conf) : 
        if ('class_name' not in conf) : 
            class_name = conf ['name'] 
            name = conf.get ('custom_name') 
            conf ['name'] = name 
            new_config = { 
                'class_name' : class_name, 
                'config' : conf, 
} 
            return new_config 
return conf 
model = cls () 
    first_layer = config [0] 
    first_layer = normalize_legacy_config (first_layer) 
    if (first_layer ['class_name'] == 'Merge') : 
        merge_inputs = [] 
        first_layer_config = first_layer ['config'] 
        for merge_input_config in first_layer_config.pop ('layers') : 
            merge_input = layer_from_config (merge_input_config) 
            merge_inputs.append (merge_input) 
first_layer_config ['layers'] = merge_inputs 
        merge = Merge.from_config (first_layer_config) 
        model.add (merge) 
else : 
        layer = layer_from_config (first_layer) 
        model.add (layer) 
for conf in config [1 :] : 
        conf = normalize_legacy_config (first_layer_config) 
        layer = layer_from_config (conf) 
        model.add (layer) 
return model 

    
    

    Fix the buggy line: conf = normalize_legacy_config (first_layer_config)
assistant
#Here is Python code to fix the buggy line: conf = normalize_legacy_config (first_layer_config)
.

conf = normalize_legacy_config (conf)