import tensorflow as tf

      # shape is statically known.
      self.assertEqual(2, a.shape[0].value)
      assertions_triggered[0] += 1
      return a

    f0(tf.constant([1]))
    f1(tf.constant([1]))
    f2(tf.constant([1]))
    self.assertEqual(3, assertions_triggered[0])

  def test_out_of_order_execution1(self):
    with self.test_session() as session:
