code: def get_inputs_placeholder_by_name(name):
      vars = tf.get_collection(tf.GraphKeys.INPUTS)
      tflearn_name = name + "/X:0"
      if len(vars) == 0:
          raise Exception(
              "The collection `tf.GraphKeys.INPUTS` is empty! "
              "Cannot retrieve placeholder. In case placeholder was "
              "defined outside TFLearn `input_data` layer, please "
              "add it to that collection."
          )
      for e in vars:
          if e.name == tflearn_name:
              return e
      # Search again, in case defined outside TFLearn wrappers.
      for e in vars:
          if e.name == name:
              return e
  
      return None
  
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 8 for calling a global function with example usage: get_inputs_placeholder_by_name(name) and returns: None, e, e