class_docstr: Abstract class representing an encoder object.
class_docstr_tok: ["Abstract","class","representing","an","encoder","object","."]
code: def add_to_collection(self, name, tensor):
      self.collection[name] = tensor
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  import utils
label_desc: Use image node_id 2 for calling the Encoder obj's underlying member method code with example usage: obj.add_to_collection(name, tensor) without return types