code: def test1(self):
      @def_function.function
      def f():
          a = array_ops.identity(1.0, name="a")
          b = a + 1
          c = array_ops.identity(2.0, name="c")
          d = array_ops.identity(a + c, name="d")
          with ops.control_dependencies([b]):
              e = array_ops.identity(3.0, name="e")
          f = array_ops.identity(c + e, name="f")
          return d, f
  
      graph = f.get_concrete_function().graph
      order = test_util.topological_sort_operations(
          graph.get_operations()
      )
      a = graph.get_operation_by_name("a")
      c = graph.get_operation_by_name("c")
      d = graph.get_operation_by_name("d")
      e = graph.get_operation_by_name("e")
      f = graph.get_operation_by_name("f")
      test_util.assert_sequential_execution(order, [a, d])
      test_util.assert_sequential_execution(order, [e, a, f])
      with self.assertRaises(AssertionError):
          test_util.assert_sequential_execution(order, [a, c])
      with self.assertRaises(AssertionError):
          test_util.assert_sequential_execution(order, [f, a, c])
      with self.assertRaises(AssertionError):
          test_util.assert_sequential_execution(order, [d, e, a, c])
  
imports: import sys
  from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.distribute import test_util
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import config
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
label_desc: Use image node_id 1 for calling the AssertSequentailExecutionTest obj's underlying member method code with example usage: obj.test1() and returns: d,  f