class_docstr: Neighbor Ops Test. Test get neighbors ops for nodes
class_docstr_tok: ["Neighbor","Ops","Test",".","Test","get","neighbors","ops","for","nodes"]
docstr: test sample fanout with feature
docstr_tok: ["test","sample","fanout","with","feature"]
code: def testSampleFanoutWithFeature(self):
      """test sample fanout with feature"""
  
      dense_feature_names = ["f3", "f4"]
      sparse_feature_names = ["f1", "f2"]
      fanout = [["0", "1"], ["0", "1"]]
      op = ops.sample_fanout_with_feature(
          tf.constant([1, 2, 0, 3], dtype=tf.int64),
          fanout,
          count=[3, 3],
          default_node=-1,
          sparse_feature_names=sparse_feature_names,
          sparse_default_values=[0] * len(sparse_feature_names),
          dense_feature_names=dense_feature_names,
          dense_dimensions=[2, 3],
      )
      with tf.Session() as sess:
          (
              neighbors,
              weights,
              types,
              dense_features,
              sparse_features,
          ) = sess.run(op)
          s = [
              sess.run(tf.sparse_tensor_to_dense(sp))
              for sp in sparse_features
          ]
  
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 neighbor_ops
label_desc: Use image node_id 12 for calling the NeighborOpsTest obj's underlying member method code with example usage: obj.testSampleFanoutWithFeature() without return types