code: def _tfconst(np_array):
      return tf.constant(np_array, dtype=tf.float32)
  
file_path: tf-quant-finance/tf_quant_finance/math/pde/steppers/douglas_adi_scheme_test.py
imports: import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 2 for calling a global function with example usage: _tfconst(np_array) and returns: tf