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 Neighbor for nodes
docstr_tok: ["Test","Sample","Neighbor","for","nodes"]
code: def testSampleNeighbor(self):
      """Test Sample Neighbor for nodes"""
  
      op = ops.sample_neighbor([1, 2], ["0", "1"], 10)
      with tf.Session() as sess:
          ids, weights, types = sess.run(op)
          self.assertEqual(10, len(ids[0]))
          self.assertEqual(10, len(weights[0]))
          self.assertEqual(10, len(types[0]))
  
          [self.assertTrue(n1 in [2, 3, 4]) for n1 in ids[0]]
          [self.assertTrue(int(w1) in [2, 3, 4]) for w1 in weights[0]]
          # [self.assertTrue(t1 in [0, 1] for t1 in types[0])]
  
          [self.assertTrue(n2 in [3, 5]) for n2 in ids[1]]
          [self.assertTrue(int(w2) in [3, 5]) for w2 in weights[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 8 for calling the NeighborOpsTest obj's underlying member method code with example usage: obj.testSampleNeighbor() without return types