code: def identity_as_tensor(value):
      """Converts `value` to `Tensor` while ensuring an op is added to the graph."""
      t = tf.convert_to_tensor(value)
      if t is value:
          t = tf.identity(value)
      return t
  
file_path: probability/tensorflow_probability/python/internal/tensor_util.py
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 2 for calling a global function with example usage: identity_as_tensor(value) and returns: t