code: def get_tensor_parents(tensor):
      """Get all calculation and data parent tensors (Not read)."""
      parents_list = []
      parents_list.append(tensor)
      if tensor.op:
          for t in tensor.op.inputs:
              if not "read:0" in t.name:
                  parents_list += get_tensor_parents(t)
      return parents_list
  
imports: from __future__ import division, print_function, absolute_import
  import six
  import string
  import random
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python import pywrap_tensorflow
  import tflearn.variables
label_desc: Use image node_id 5 for calling a global function with example usage: get_tensor_parents(tensor) and returns: parents_list