code: def sample_node(count, node_type, condition=""):
      """
      Sample Nodes by specific types
  
      Args:
      count: A scalar tensor specify sample count
      types: A scalar tensor specify sample type
      condition: A atrribute specify sample condition
  
      Return:
      A 1-d tensor of sample node ids
      """
      if node_type == "-1":
          types = -1
      else:
          types = type_ops.get_node_type_id(node_type)
      return base._LIB_OP.sample_node(count, types, condition)
  
file_path: euler/tf_euler/python/euler_ops/sample_ops.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import ctypes
  import os
  import tensorflow
  from tf_euler.python.euler_ops import base
  from tf_euler.python.euler_ops import type_ops
label_desc: Use image node_id 2 for calling a global function with example usage: sample_node(count, node_type, condition) and returns: base