code: def get_1tower_model(model, column_info):
      """
      Conect layers of each tower to output embeddings of user or item
      """
      col_list = column_info.get_name_list()
      input_names = [column_info.name + x for x in col_list]
      inputs = [model.get_layer(x).input for x in input_names]
      output = model.get_layer(
          column_info.name + "_embed_output"
      ).output
      one_tower_model = tf.keras.models.Model(inputs, output)
      return one_tower_model
  
file_path: BigDL/python/friesian/example/two_tower/model.py
imports: from bigdl.dllib.keras.layers import *
  from tensorflow.keras.layers import Input, Embedding, Dense, Flatten, concatenate, Lambda
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: get_1tower_model(model, column_info) and returns: one_tower_model