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: Print out the layer names in the model with some
  options for filtering the results.
  
  Arguments:
      layers (dict): model configuration dictionary
      field (str, optional): the configuration field to file against
                             (e.g. layer 'name')
      regex (str, optional): regular expression to apply to field
                             to file the results (e.g. "conv")
  
  Returns:
      list of dict: Layer config dictionary
docstr_tok: ["Print","out","the","layer","names","in","the","model","with","some","options","for","filtering","the","results",".","Arguments",":","layers","(","dict",")",":","model","configuration","dictionary","field","(","str",",","optional",")",":","the","configuration","field","to","file","against","(","e.g",".","layer","'name","'",")","regex","(","str",",","optional",")",":","regular","expression","to","apply","to","field","to","file","the","results","(","e.g",".","``","conv","''",")","Returns",":","list","of","dict",":","Layer","config","dictionary"]
code: def find_layers(layers, field, regex=None):
      """
      Print out the layer names in the model with some
      options for filtering the results.
  
      Arguments:
          layers (dict): model configuration dictionary
          field (str, optional): the configuration field to file against
                                 (e.g. layer 'name')
          regex (str, optional): regular expression to apply to field
                                 to file the results (e.g. "conv")
  
      Returns:
          list of dict: Layer config dictionary
      """
      matches = []
      for l in layers["layers"]:
          if field in l["config"]:
              value = l["config"][field]
              if regex is None or regex.match(value):
                  matches.append(value)
          if type(l) is dict and "layers" in l["config"]:
              matches.extend(
                  ModelDescription.find_layers(
                      l["config"], field, regex=regex
                  )
              )
      return matches
  
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 4 for calling the ModelDescription obj's underlying member method code with example usage: obj.find_layers(layers, field, regex) and returns: matches