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:
      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")
  
  Example:
      layers(field='name', regex='conv') will return all layers
      with the name containing "conv"
docstr_tok: ["Print","out","the","layer","names","in","the","model","with","some","options","for","filtering","the","results",".","Arguments",":","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","''",")","Example",":","layers","(","field='name","'",",","regex='conv","'",")","will","return","all","layers","with","the","name","containing","``","conv","''"]
code: def layers(self, field="name", regex=None):
      """
      Print out the layer names in the model with some
      options for filtering the results.
  
      Arguments:
          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")
  
      Example:
          layers(field='name', regex='conv') will return all layers
          with the name containing "conv"
      """
      if regex is not None:
          regex = re.compile(regex)
      return self.find_layers(
          self["model"]["config"], field, regex=regex
      )
  
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 3 for calling the ModelDescription obj's underlying member method code with example usage: obj.layers(field, regex) and returns: self