code: def is_v1_layer_or_model(obj):
      return isinstance(obj, (base_layer_v1.Layer, training_v1.Model))
  
file_path: tensorflow/tensorflow/python/keras/utils/version_utils.py
imports: from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.keras.utils.generic_utils import LazyLoader
label_desc: Use image node_id 4 for calling a global function with example usage: is_v1_layer_or_model(obj) and returns: isinstance