class_docstr: Base class of snapshot writers.
  
  :class:`~chainer.training.extensions.Snapshot` invokes ``__call__`` of this
  class every time when taking a snapshot.
  This class determines how the actual saving function will be invoked.
  
  .. seealso::
  
      - :meth:`chainer.training.extensions.snapshot`
docstr: Finalizes the wirter.
  
  Like extensions in :class:`~chainer.training.Trainer`, this method
  is invoked at the end of the training.
docstr_tok: ["Finalizes","the","wirter",".","Like","extensions","in",":","class",":","`","~chainer.training.Trainer","`",",","this","method","is","invoked","at","the","end","of","the","training","."]
code: def finalize(self):
      """Finalizes the wirter.
  
      Like extensions in :class:`~chainer.training.Trainer`, this method
      is invoked at the end of the training.
  
      """
      pass
  
imports: import multiprocessing
  import os
  import shutil
  import threading
  from six.moves import queue
  from chainer.serializers import npz
  from chainer import utils
label_desc: Use image node_id 4 for calling the Writer obj's underlying member method code with example usage: obj.finalize() without return types