code: def test_basic_flow_deferred(self):
      model = Sequential(name="seq")
      model.add(layers.Dense(4))
      model.add(layers.Dense(5))
      model.summary()
  
      self.assertEqual(len(model.layers), 2)
  
      # Test eager call
      x = np.random.random((3, 2))
      y = model(x)
      self.assertTrue(model.built)
      model.summary()
  
      self.assertEqual(type(model._functional), Functional)
      self.assertEqual(y.shape, (3, 5))
  
      # Test symbolic call
      x = backend.KerasTensor((3, 2))
      y = model(x)
      self.assertEqual(y.shape, (3, 5))
  
      # Test `layers` constructor arg
      model = Sequential(
          layers=[
              layers.Dense(4),
              layers.Dense(5),
          ]
      )
      x = np.random.random((3, 2))
      y = model(x)
      self.assertEqual(y.shape, (3, 5))
  
      # Test pop
      model.pop()
      self.assertEqual(len(model.layers), 1)
      self.assertTrue(model.built)
      self.assertEqual(len(model.weights), 2)
  
      x = np.random.random((3, 2))
      y = model(x)
      self.assertEqual(y.shape, (3, 4))
  
imports: import numpy
  import pytest
  from keras import backend
  from keras import layers
  from keras import testing
  from keras.layers.core.input_layer import Input
  from keras.models.functional import Functional
  from keras.models.sequential import Sequential
label_desc: Use image node_id 3 for calling the SequentialTest obj's underlying member method code with example usage: obj.test_basic_flow_deferred() without return types