import tensorflow as tf

        coord.join()

  def test_output_must_have_same_batch_dimension_size_as_input(self):
    with self.test_session() as session:
      @dynamic_batching.batch_fn
      def f(_):
        return tf.constant([1, 2, 3, 4])

      output = f(tf.constant([1]))

      coord = tf.train.Coordinator()
      tf.train.start_queue_runners(coord=coord)
