code: def get_layer_variables_by_scope(scope_name):
      ret = []
      for v in tf.get_collection(tf.GraphKeys.MODEL_VARIABLES):
          if scope_name + "/" in v.name:
              ret.append(v)
      return ret
  
file_path: tflearn/tflearn/variables.py
imports: from __future__ import division, print_function, absolute_import
  import tensorflow.compat.v1
  import tflearn
  from tflearn.vendor.arg_scope import add_arg_scope
label_desc: Use image node_id 5 for calling a global function with example usage: get_layer_variables_by_scope(scope_name) and returns: ret