code: def test_construct_network(
      self,
      input_shape,
      phoenix_spec,
      architecture,
      dropout,
      logits_dimension,
      expected_logits,
      lengths=None,
  ):
      # Force graph mode
      with tf.compat.v1.Graph().as_default():
          tf.random.set_seed(1234)
          input_tensor = tf.compat.v1.placeholder(
              dtype=tf.float32, shape=input_shape, name="input"
          )
          logits_spec = architecture.construct_tower(
              phoenix_spec=phoenix_spec,
              input_tensor=input_tensor,
              is_training=True,
              lengths=lengths,
              logits_dimension=logits_dimension,
              is_frozen=False,
              dropout_rate=dropout,
          )
  
          np.random.seed(42)
          test_input = np.random.random(input_shape)
  
          with tf.compat.v1.Session() as sess:
              sess.run(tf.compat.v1.global_variables_initializer())
              sess.run(tf.compat.v1.local_variables_initializer())
              logits_val = sess.run(
                  logits_spec.logits,
                  feed_dict={input_tensor: test_input},
              )
  
          self.assertAllClose(expected_logits, logits_val, rtol=1e-3)
  
file_path: model_search/model_search/architecture/graph_architecture_test.py
imports: from absl.testing import parameterized
  from model_search.architecture import architecture_utils
  from model_search.architecture import graph_architecture
  from model_search.proto import phoenix_spec_pb2
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the GraphArchitectureTest obj's underlying member method code with example usage: obj.test_construct_network(input_shape, phoenix_spec, architecture, dropout, logits_dimension, expected_logits, lengths) without return types