code: def _is_per_replica_instance(obj):
      return isinstance(
          obj, tf.distribute.DistributedValues
      ) and isinstance(obj, tf.__internal__.CompositeTensor)
  
imports: import contextlib
  import warnings
  import numpy
  import tensorflow
  import tree
  from packaging.version import Version
  from tensorflow.python.eager import context
  from keras import callbacks
  from keras import metrics
  from keras import optimizers
  from keras.trainers import trainer
  from keras.trainers.data_adapters import data_adapter_utils
  from keras.trainers.epoch_iterator import EpochIterator
  from keras.utils import traceback_utils
label_desc: Use image node_id 6 for calling a global function with example usage: _is_per_replica_instance(obj) and returns: unknown