code: def arrow_schema_to_tensor_types(schema):
      """Convert an Arrow schema to tuple of (Tensor dtypes, TensorShapes).
      This function requires pyarrow to be installed.
      """
      type_shape_list = [
          arrow_to_tensor_type(field.type) for field in schema
      ]
      tensor_types, shape_dims = zip(*type_shape_list)
      tensor_shapes = tuple(tf.TensorShape(s) for s in shape_dims)
      return tensor_types, tensor_shapes
  
imports: from functools import partial
  import io
  from itertools import chain
  import os
  import socket
  import threading
  import tempfile
  import tensorflow
  from tensorflow import dtypes
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import structure
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 2 for calling a global function with example usage: arrow_schema_to_tensor_types(schema) and returns: tensor_types,  tensor_shapes