code: def create_base_network(input_shape):
      """Base network to be shared (eq. to feature extraction)."""
      input = Input(shape=input_shape)
      x = Flatten()(input)
      x = Dense(128, act=tf.nn.relu)(x)
      x = Dropout(0.9)(x)
      x = Dense(128, act=tf.nn.relu)(x)
      x = Dropout(0.9)(x)
      x = Dense(128, act=tf.nn.relu)(x)
      return Model(input, x)
  
file_path: TensorLayer/examples/basic_tutorials/tutorial_mnist_siamese.py
imports: import random
  import time
  import numpy
  import tensorflow
  import tensorlayer
  from tensorlayer.layers import Dense, Dropout, Flatten, Input
  from tensorlayer.models import Model
label_desc: Use image node_id 3 for calling a global function with example usage: create_base_network(input_shape) and returns: Model