class_docstr: ArrowDatasetTest
class_docstr_tok: ["ArrowDatasetTest"]
docstr: test_arrow_feather_dataset
code: def test_arrow_feather_dataset(self):
      """test_arrow_feather_dataset"""
      import tensorflow_io.arrow as arrow_io
  
      from pyarrow.feather import write_feather
  
      # Feather files currently do not support columns of list types
      truth_data = TruthData(
          self.scalar_data, self.scalar_dtypes, self.scalar_shapes
      )
  
      batch = self.make_record_batch(truth_data)
      df = batch.to_pandas()
  
      # Create a tempfile that is deleted after tests run
      with tempfile.NamedTemporaryFile(delete=False) as f:
          write_feather(df, f, version=1)
  
      # test single file
      dataset = arrow_io.ArrowFeatherDataset(
          f.name,
          list(range(len(truth_data.output_types))),
          truth_data.output_types,
          truth_data.output_shapes,
      )
      self.run_test_case(dataset, truth_data)
  
      # test single file with 'file://' prefix
      dataset = arrow_io.ArrowFeatherDataset(
          f"file://{f.name}",
          list(range(len(truth_data.output_types))),
          truth_data.output_types,
          truth_data.output_shapes,
      )
      self.run_test_case(dataset, truth_data)
  
      # test multiple files
      dataset = arrow_io.ArrowFeatherDataset(
          [f.name, f.name],
          list(range(len(truth_data.output_types))),
          truth_data.output_types,
          truth_data.output_shapes,
      )
      truth_data_doubled = TruthData(
          [d * 2 for d in truth_data.data],
          truth_data.output_types,
          truth_data.output_shapes,
      )
      self.run_test_case(dataset, truth_data_doubled)
  
      # test construction from schema
      dataset = arrow_io.ArrowFeatherDataset.from_schema(
          f.name, batch.schema
      )
      self.run_test_case(dataset, truth_data)
  
      os.unlink(f.name)
  
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 6 for calling the ArrowDatasetTest obj's underlying member method code with example usage: obj.test_arrow_feather_dataset() without return types