code: def get_siamese_network(input_shape):
      """Create siamese network with shared base network as layer"""
      base_layer = create_base_network(input_shape).as_layer()
  
      ni_1 = Input(input_shape)
      ni_2 = Input(input_shape)
      nn_1 = base_layer(ni_1)
      nn_2 = base_layer(ni_2)
      return Model(inputs=[ni_1, ni_2], outputs=[nn_1, nn_2])
  
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import *
  from tensorlayer.models import *
  from tests.utils import CustomTestCase
label_desc: Use image node_id 5 for calling a global function with example usage: get_siamese_network(input_shape) and returns: Model