import tensorflow as tf

                           encoding_stage.AdaptiveEncodingStageInterface))
    # Calling the method again should create a new instance.
    new_stage = self.default_encoding_stage()
    self.assertIsNot(stage, new_stage)

  def test_encoding_stage_constructor_does_not_modify_graph(self):
    """Tests that the constructor of encoding stage does not modify graph."""
    graph_def = tf.get_default_graph().as_graph_def()
    self.default_encoding_stage()
    new_graph_def = tf.get_default_graph().as_graph_def()
    tf.test.assert_equal_graph_def(graph_def, new_graph_def)

  def test_encoding_stage_name(self):
    """Tests that the `name` property returns a string."""
