code: def check_restore_tensor(tensor_to_check, exclvars):
      for exclvar in exclvars:
          if isinstance(exclvar, str):
              if exclvar.split(":")[0] in tensor_to_check.name:
                  return False
          elif exclvar.name.split(":")[0] in tensor_to_check.name:
              return False
      return True
  
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 25 for calling a global function with example usage: check_restore_tensor(tensor_to_check, exclvars) and returns: True, False, False