code: def is_keras_tensor(obj):
      return hasattr(obj, "_keras_history")
  
imports: import collections
  import copy
  import json
  import numpy
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.keras import backend
  from tensorflow.python.keras.engine import base_layer_utils
  from tensorflow.python.keras.saving.saved_model import json_utils
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 for calling a global function with example usage: is_keras_tensor(obj) and returns: hasattr