class_docstr: A context to maintain collection change in a tower.
class_docstr_tok: ["A","context","to","maintain","collection","change","in","a","tower","."]
code: def __exit__(self, exc_type, exc_val, exc_tb):
      if exc_type is not None:
          return False
      new_coll = backup_collection()
  
      if self._check_diff:
          self._print_diff(new_coll)
      self._restore_freeze(new_coll)
      return False
  
file_path: tensorpack/tensorpack/tfutils/collection.py
imports: from contextlib import contextmanager
  from copy import copy
  import six
  from ..compat import tfv1
  from ..utils import logger
  from ..utils.argtools import memoized
label_desc: Use image node_id 5 for calling the CollectionGuard obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) and returns: False, False