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 node
docstr_tok: ["Test","euler","graph","sample","node"]
code: def testSampleNodeWithCondition(self):
      """Test euler graph sample node"""
  
      c = "price gt 4"
      op = ops.sample_node(10, "1", condition=c)
      with tf.Session() as sess:
          nodes = sess.run(op)
          self.assertEqual(10, len(nodes))
          [self.assertTrue(n in [5]) for n in nodes]
  
      op = ops.sample_node(10, "0", condition=c)
      with tf.Session() as sess:
          nodes = sess.run(op)
          self.assertEqual(10, len(nodes))
          [self.assertTrue(n in [4, 6]) for n in nodes]
  
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 3 for calling the SampleOpsTest obj's underlying member method code with example usage: obj.testSampleNodeWithCondition() without return types