class_docstr: Convenience class that makes it easy to share variables.
  Each insance of this class creates its own set of variables, but
  each subsequent execution of an instance will re-use its variables.
  
  Graph components that define variables should inherit from this class
  and implement their logic in the `_build` method.
docstr: Initialize the module. Each subclass must call this constructor with a name.
  
  Args:
    name: Name of this module. Used for `tf.make_template`.
code: def __init__(self, name):
      """
      Initialize the module. Each subclass must call this constructor with a name.
  
      Args:
        name: Name of this module. Used for `tf.make_template`.
      """
      self.name = name
      self._template = tf.make_template(
          name, self._build, create_scope_now_=True
      )
      # Docstrings for the class should be the docstring for the _build method
      self.__doc__ = self._build.__doc__
      # pylint: disable=E1101
      self.__call__.__func__.__doc__ = self._build.__doc__
  
file_path: seq2seq/seq2seq/graph_module.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 1 to create a new GraphModule object from inherited base classes: object with example: obj = GraphModule(name)