class_docstr: ArrowTestBase
class_docstr_tok: ["ArrowTestBase"]
docstr: Make an Arrow RecordBatch for given test data
code: def make_record_batch(self, truth_data):
      """Make an Arrow RecordBatch for given test data"""
      arrays = [
          pa.array(
              truth_data.data[col],
              type=self.get_arrow_type(
                  truth_data.output_types[col],
                  isinstance(truth_data.data[col][0], list),
              ),
          )
          for col in range(len(truth_data.output_types))
      ]
      names = [f"{i}_[{a.type}]" for i, a in enumerate(arrays)]
      return pa.RecordBatch.from_arrays(arrays, names)
  
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 3 for calling the ArrowTestBase obj's underlying member method code with example usage: obj.make_record_batch(truth_data) and returns: pa