class_docstr: A context to maintain collection change in a tower.
class_docstr_tok: ["A","context","to","maintain","collection","change","in","a","tower","."]
docstr: Get items from this collection that are added in the current tower.
docstr_tok: ["Get","items","from","this","collection","that","are","added","in","the","current","tower","."]
code: def get_collection_in_tower(self, key):
      """
      Get items from this collection that are added in the current tower.
      """
      new = tf.get_collection(key)
      old = set(self.original.get(key, []))
      # persist the order in new
      return [x for x in new if x not in old]
  
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 8 for calling the CollectionGuard obj's underlying member method code with example usage: obj.get_collection_in_tower(key) and returns: unknown