class_docstr: Container class for the model serialization dictionary.  Provides
  helper methods for searching and manipulating the dictionary.
  
  Arguments:
      pdict (dict or str): the configuration dictionary generated
                           by Model.serialize() or the name of a
                           pickle file containing that dictionary
docstr: Find a layer by its name.
  
  Arguments:
      layers (dict): model configuration dictionary
      layer_name (str) name of the layer
  
  Returns:
      dict: Layer config dictionary
docstr_tok: ["Find","a","layer","by","its","name",".","Arguments",":","layers","(","dict",")",":","model","configuration","dictionary","layer_name","(","str",")","name","of","the","layer","Returns",":","dict",":","Layer","config","dictionary"]
code: def find_by_name(layers, layer_name):
      """
      Find a layer by its name.
  
      Arguments:
          layers (dict): model configuration dictionary
          layer_name (str) name of the layer
  
      Returns:
          dict: Layer config dictionary
      """
      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
  
file_path: neon/neon/util/modeldesc.py
imports: from builtins import zip
  import numpy
  import re
  from neon.util.persist import load_obj
  from neon import logger
label_desc: Use image node_id 6 for calling the ModelDescription obj's underlying member method code with example usage: obj.find_by_name(layers, layer_name) and returns: l, val