code: def get_collection_trainable(name=""):
      variables = []
      for p in tf.compat.v1.trainable_variables():
          # print(p.name.rpartition('/')[0], self.name)
          if p.name.rpartition("/")[0] == name:
              variables.append(p)
      return variables
  
imports: import numpy
  import tensorflow
  from tensorflow.python.ops.rnn_cell import LSTMStateTuple
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated, deprecated_alias
label_desc: Use image node_id 4 for calling a global function with example usage: get_collection_trainable(name) and returns: variables