code: def lift_indexedslices(binary_op, x, y, with_assertions):
      if isinstance(x, tf.IndexedSlices):
          assert isinstance(y, tf.IndexedSlices)
          assertions = list()
          if with_assertions:
              assertions.append(
                  tf.debugging.assert_equal(x=x.indices, y=y.indices)
              )
          with tf.control_dependencies(control_inputs=assertions):
              return tf.IndexedSlices(
                  values=binary_op(x.values, y.values),
                  indices=x.indices,
                  dense_shape=x.dense_shape,
              )
      else:
          return binary_op(x, y)
  
file_path: tensorforce/tensorforce/core/utils/tf_util.py
imports: import tensorflow
  from tensorforce import TensorforceError
label_desc: Use image node_id 14 for calling a global function with example usage: lift_indexedslices(binary_op, x, y, with_assertions) and returns: binary_op, tf