code: def _convert_variables_to_tensors(values):
      """Read `tf.Variables` in `values` and keep other objects unchanged."""
      return tf.nest.map_structure(
          lambda x: tf.convert_to_tensor(x)
          if isinstance(x, tf.Variable)
          else x,
          values,
      )
  
file_path: probability/tensorflow_probability/python/internal/loop_util.py
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow.python.ops import control_flow_util
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_variables_to_tensors(values) and returns: tf