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 neighbor layerwise
docstr_tok: ["Test","sample","fanout","neighbor","layerwise"]
code: def testSampleNeighborLayerwiseFanout(self):
      """Test sample fanout neighbor layerwise"""
  
      op = ops.sample_fanout_layerwise_each_node(
          tf.constant([1, 2, 3, 4, 5], dtype=tf.int64),
          [["0", "1"], ["0", "1"]],
          [10, 20],
      )
      with tf.Session() as sess:
          ids, adj = sess.run(op)
          self.assertEqual(50, len(ids[1]))
          self.assertEqual(100, len(ids[2]))
  
      op = ops.sample_fanout_layerwise(
          tf.constant([1, 2, 3, 4, 5], dtype=tf.int64),
          [["0", "1"], ["0", "1"]],
          [10, 20],
      )
      with tf.Session() as sess:
          ids, adj = sess.run(op)
          self.assertEqual(10, len(ids[1]))
          self.assertEqual(20, len(ids[2]))
          print(
              ids[1],
              sess.run(tf.sparse_tensor_to_dense(adj[0])),
              ids[2],
              sess.run(tf.sparse_tensor_to_dense(adj[1])),
          )
  
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 11 for calling the NeighborOpsTest obj's underlying member method code with example usage: obj.testSampleNeighborLayerwiseFanout() without return types