code: def test_siamese_architecture_twin_sequence_pair_shapes(self):
      model = tests.mocks.models_keras.SaimeseTwinsClassifier()
      model.fit()
      model.save()
  
      keras_model = model.estimator.keras
      twin_layers = [
          l.name for l in keras_model.layers if "twin" in l.name
      ]
  
      for twin_layer_name in twin_layers:
          original_layer_name = twin_layer_name.replace("_twin", "")
          siamese_original_layer = keras_model.get_layer(
              original_layer_name
          )
          siamese_twin_layer = keras_model.get_layer(twin_layer_name)
          self.assertEqual(
              siamese_twin_layer.input_shape,
              siamese_original_layer.input_shape,
          )
          self.assertEqual(
              siamese_twin_layer.output_shape,
              siamese_original_layer.output_shape,
          )
  
imports: import unittest
  import tests.mocks.models_keras
  import scipy.stats
  import numpy
label_desc: Use image node_id 1 for calling the TestSiameseArchitectureBinaryClassifier obj's underlying member method code with example usage: obj.test_siamese_architecture_twin_sequence_pair_shapes() without return types