code: def _sparse_ones_like(sp_tensor):
      return tf.SparseTensor(
          sp_tensor.indices,
          tf.ones_like(sp_tensor.values),
          sp_tensor.dense_shape,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tf_euler.python.utils import layers
label_desc: Use image node_id 1 for calling a global function with example usage: _sparse_ones_like(sp_tensor) and returns: tf