class_docstr: Serializer for dictionary.
  
  This is the standard serializer in Chainer. The hierarchy of objects are
  simply mapped to a flat dictionary with keys representing the paths to
  objects in the hierarchy.
  
  .. note::
     Despite of its name, this serializer DOES NOT serialize the
     object into external files. It just build a flat dictionary of arrays
     that can be fed into :func:`numpy.savez` and
     :func:`numpy.savez_compressed`. If you want to use this serializer
     directly, you have to manually send a resulting dictionary to one of
     these functions.
  
  Args:
      target (dict): The dictionary that this serializer saves the objects
          to. If target is None, then a new dictionary is created.
      path (str): The base path in the hierarchy that this serializer
          indicates.
  
  Attributes:
      ~DictionarySerializer.target (dict): The target dictionary.
          Once the serialization completes, this dictionary can be fed into
          :func:`numpy.savez` or :func:`numpy.savez_compressed` to serialize
          it in the NPZ format.
class_docstr_tok: ["Serializer","for","dictionary",".","This","is","the","standard","serializer","in","Chainer",".","The","hierarchy","of","objects","are","simply","mapped","to","a","flat","dictionary","with","keys","representing","the","paths","to","objects","in","the","hierarchy",".","..","note",":",":","Despite","of","its","name",",","this","serializer","DOES","NOT","serialize","the","object","into","external","files",".","It","just","build","a","flat","dictionary","of","arrays","that","can","be","fed","into",":","func",":","`","numpy.savez","`","and",":","func",":","`","numpy.savez_compressed","`",".","If","you","want","to","use","this","serializer","directly",",","you","have","to","manually","send","a","resulting","dictionary","to","one","of","these","functions",".","Args",":","target","(","dict",")",":","The","dictionary","that","this","serializer","saves","the","objects","to",".","If","target","is","None",",","then","a","new","dictionary","is","created",".","path","(","str",")",":","The","base","path","in","the","hierarchy","that","this","serializer","indicates",".","Attributes",":","~DictionarySerializer.target","(","dict",")",":","The","target","dictionary",".","Once","the","serialization","completes",",","this","dictionary","can","be","fed","into",":","func",":","`","numpy.savez","`","or",":","func",":","`","numpy.savez_compressed","`","to","serialize","it","in","the","NPZ","format","."]
code: def __getitem__(self, key):
      key = key.strip("/")
      return DictionarySerializer(self.target, self.path + key + "/")
  
imports: import numpy
  import six
  from chainer.backends import _chainerx
  from chainer.backends import _cpu
  from chainer.backends import cuda
  from chainer.backends import intel64
  from chainer import serializer
  import chainerx
label_desc: Use image node_id 2 for calling the DictionarySerializer obj's underlying member method code with example usage: obj.__getitem__(key) and returns: DictionarySerializer