import tensorflow as tf

      A `TestData` tuple containing numpy values representing the results.
    """

    def _adaptive_one_to_many_encode_decode(state):
      """Implementation of the method for `AdaptiveEncodingStageInterface`."""
      server_graph = tf.Graph()
      with server_graph.as_default():
        x = input_fn()
        shape = py_utils.static_or_dynamic_shape(x)
        if state is None:
