'Find a layer by its name.
Arguments:
layers (dict): model configuration dictionary
layer_name (str) name of the layer
Returns:
dict: Layer config dictionary'

@staticmethod
def find_by_name(layers, layer_name):

    for l in layers['layers']:
        if (('name' in l['config']) and (l['config']['name'] == layer_name)):
            return l
        if ((type(l) is dict) and ('config' in l) and ('layers' in l['config'])):
            val = ModelDescription.find_by_name(l['config'], layer_name)
            if (val is not None):
                return val
