code: def test_empty_table():
      schema1 = pa.schema(
          [
              pa.field("f0", pa.int64()),
              pa.field("f1", pa.dictionary(pa.int32(), pa.string())),
              pa.field("f2", pa.list_(pa.list_(pa.int64()))),
          ]
      )
      # test it preserves field nullability
      schema2 = pa.schema(
          [
              pa.field("a", pa.int64(), nullable=False),
              pa.field("b", pa.int64()),
          ]
      )
  
      for schema in [schema1, schema2]:
          table = schema.empty_table()
          assert isinstance(table, pa.Table)
          assert table.num_rows == 0
          assert table.schema == schema
  
imports: from collections import OrderedDict
  import sys
  import weakref
  import pytest
  import numpy
  import pyarrow
  import pyarrow.tests.util
  from pyarrow.vendored.version import Version
label_desc: Use image node_id 28 for calling a global function with example usage: test_empty_table() without return types