docstr: Finalize checkpointer
  
  Clean up all intermediate snapshots.
docstr_tok: ["Finalize","checkpointer","Clean","up","all","intermediate","snapshots","."]
code: def finalize(self):
      """Finalize checkpointer
  
      Clean up all intermediate snapshots.
  
      """
      assert self.path is not None
  
      files2remove = self.files
      for file in files2remove:
          filename = os.path.join(self.path, file)
          try:
              os.remove(filename)
          except Exception:
              pass
  
      self.files = []
  
imports: import errno
  import os
  import shutil
  import tempfile
  import time
  import warnings
  import chainer
  from chainer.training import extension
label_desc: Use image node_id 4 for calling the _MultiNodeCheckpointer obj's underlying member method code with example usage: obj.finalize() without return types