class_docstr: Sample Ops Test.
  
  Test sample ops for euler graph
class_docstr_tok: ["Sample","Ops","Test",".","Test","sample","ops","for","euler","graph"]
docstr: Test euler graph sample edge
docstr_tok: ["Test","euler","graph","sample","edge"]
code: def testSampleNodeWithSrc(self):
      """Test euler graph sample edge"""
  
      op = ops.sample_node_with_src([1, 2, 3, 4, 5], 5)
      with tf.Session() as sess:
          samples = sess.run(op)
          samples = np.array(samples)
          self.assertEqual(samples.shape, (5, 5))
          for i in range(0, 5):
              if i % 2 == 0:
                  [self.assertTrue(n in [1, 3, 5]) for n in samples[i]]
              else:
                  [self.assertTrue(n in [2, 4, 6]) for n in samples[i]]
  
file_path: euler/tf_euler/python/euler_ops/sample_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
  import numpy
  from tf_euler.python.euler_ops import base
  from tf_euler.python.euler_ops import sample_ops
label_desc: Use image node_id 5 for calling the SampleOpsTest obj's underlying member method code with example usage: obj.testSampleNodeWithSrc() without return types