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

def getlayer(self, layer_name):

    return self.find_by_name(self['model']['config'], layer_name)
