code: def get_tensor_with_parent_name(tensor):
      """Get a tensor name with its parent tensor's name as prefix."""
      tensor_name = tensor.name
      if tensor.op.inputs[0].name is not None:
          return tensor.op.inputs[0].name + "_" + tensor_name
      return tensor_name
  
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 18 for calling a global function with example usage: get_tensor_with_parent_name(tensor) and returns: tensor_name, unknown