class_docstr: ArrowTestBase
class_docstr_tok: ["ArrowTestBase"]
docstr: get_arrow_type
code: def get_arrow_type(self, dt, is_list):
      """get_arrow_type"""
      if dt == tf.dtypes.bool:
          arrow_type = pa.bool_()
      elif dt == tf.dtypes.int8:
          arrow_type = pa.int8()
      elif dt == tf.dtypes.int16:
          arrow_type = pa.int16()
      elif dt == tf.dtypes.int32:
          arrow_type = pa.int32()
      elif dt == tf.dtypes.int64:
          arrow_type = pa.int64()
      elif dt == tf.dtypes.uint8:
          arrow_type = pa.uint8()
      elif dt == tf.dtypes.uint16:
          arrow_type = pa.uint16()
      elif dt == tf.dtypes.uint32:
          arrow_type = pa.uint32()
      elif dt == tf.dtypes.uint64:
          arrow_type = pa.uint64()
      elif dt == tf.dtypes.float16:
          arrow_type = pa.float16()
      elif dt == tf.dtypes.float32:
          arrow_type = pa.float32()
      elif dt == tf.dtypes.float64:
          arrow_type = pa.float64()
      elif dt == tf.dtypes.string:
          arrow_type = pa.string()
      else:
          raise TypeError("Unsupported dtype for Arrow" + str(dt))
      if is_list:
          arrow_type = pa.list_(arrow_type)
      return arrow_type
  
imports: from collections import namedtuple
  import io
  import os
  import socket
  import tempfile
  import threading
  import pytest
  import pyarrow
  import numpy.testing
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 2 for calling the ArrowTestBase obj's underlying member method code with example usage: obj.get_arrow_type(dt, is_list) and returns: arrow_type