code: def process_primitive(data, name):
      """process_primitive"""
      if data == "boolean":
          return tf.TensorSpec(tf.TensorShape([]), tf.bool, name)
      if data == "int":
          return tf.TensorSpec(tf.TensorShape([]), tf.int32, name)
      if data == "long":
          return tf.TensorSpec(tf.TensorShape([]), tf.int64, name)
      if data == "float":
          return tf.TensorSpec(tf.TensorShape([]), tf.float32, name)
      if data == "double":
          return tf.TensorSpec(tf.TensorShape([]), tf.float64, name)
      assert data in ("bytes", "string")
      return tf.TensorSpec(tf.TensorShape([]), tf.string, name)
  
file_path: io/tensorflow_io/python/experimental/serialization_ops.py
imports: import json
  import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 3 for calling a global function with example usage: process_primitive(data, name) and returns: tf, tf, tf, tf, tf, tf