code: def _sparse_eye(num_rows, dtype=tf.float32):
      return tf.SparseTensor(
          tf.stack([tf.range(num_rows)] * 2, axis=1),
          tf.ones(num_rows, dtype),
          tf.stack([num_rows] * 2),
      )
  
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 2 for calling a global function with example usage: _sparse_eye(num_rows, dtype) and returns: tf