code: def _get_type_id(OP, type_id_or_names):
      type_id_or_names = tf.convert_to_tensor(type_id_or_names)
      if type_id_or_names.dtype == tf.string:
          type_id_or_names = OP(type_id_or_names)
      return type_id_or_names
  
file_path: euler/tf_euler/python/euler_ops/type_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
label_desc: Use image node_id 1 for calling a global function with example usage: _get_type_id(OP, type_id_or_names) and returns: type_id_or_names