code: def test_empty_table():
      """See that we can transmit empty tables"""
      expected_dataframe = pd.DataFrame(
          np.empty(shape=(0, 4), dtype=np.int8), columns=list("ABCD")
      )
      expected_table = pa.Table.from_pandas(expected_dataframe)
  
      serializer = ArrowTableSerializer()
      stream = serializer.serialize(expected_table)
      actual_table = serializer.deserialize(stream)
      assert_frame_equal(actual_table.to_pandas(), expected_dataframe)
  
imports: import numpy
  import pandas
  import pyarrow
  from pandas.util.testing import assert_frame_equal
  from petastorm.reader_impl.arrow_table_serializer import ArrowTableSerializer
label_desc: Use image node_id 2 for calling a global function with example usage: test_empty_table() without return types