class_docstr: Feature Ops Test.
  
  Test get feature(binary/sparse/dense) ops for nodes and edges
class_docstr_tok: ["Feature","Ops","Test",".","Test","get","feature","(","binary\/sparse\/dense",")","ops","for","nodes","and","edges"]
docstr: Test get sparse feature for nodes
docstr_tok: ["Test","get","sparse","feature","for","nodes"]
code: def testGetNodeSparseFeature(self):
      """Test get sparse feature for nodes"""
      op = ops.get_sparse_feature(
          tf.constant([1, -1, 2, 3, 4], dtype=tf.int64),
          ["f1", "f2"],
          None,
          2,
      )
      with tf.Session() as sess:
          sparse_features = sess.run(op)
          features = [
              sess.run(tf.sparse_tensor_to_dense(sp))
              for sp in sparse_features
          ]
  
          self.assertAllEqual(
              [[11, 12], [0, 0], [21, 22], [31, 32], [41, 42]],
              features[0],
          )
          self.assertAllEqual(
              [[13, 14], [0, 0], [23, 24], [33, 34], [43, 44]],
              features[1],
          )
  
file_path: euler/tf_euler/python/euler_ops/feature_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import subprocess
  from tensorflow.python.platform import test
  import tensorflow
  from tf_euler.python.euler_ops import base
  from tf_euler.python.euler_ops import feature_ops
label_desc: Use image node_id 2 for calling the FeatureOpsTest obj's underlying member method code with example usage: obj.testGetNodeSparseFeature() without return types