code: def get_layer(
      layer_type, gw, feature, hidden_size, act, name, is_test=False
  ):
      """get_layer"""
      return getattr(model, layer_type)(
          gw, feature, hidden_size, act, name
      )
  
imports: import argparse
  import time
  import glob
  import os
  import numpy
  import pgl
  from pgl.utils.logger import log
  from pgl.utils import paddle_helper
  import paddle
  import paddle.fluid
  import tqdm
  import reader
  import model
label_desc: Use image node_id 1 for calling a global function with example usage: get_layer(layer_type, gw, feature, hidden_size, act, name, is_test) and returns: getattr