code: def test_orcfile_empty(datadir):
      from pyarrow import orc
  
      table = orc.ORCFile(datadir / "TestOrcFile.emptyFile.orc").read()
      assert table.num_rows == 0
  
      expected_schema = pa.schema(
          [
              ("boolean1", pa.bool_()),
              ("byte1", pa.int8()),
              ("short1", pa.int16()),
              ("int1", pa.int32()),
              ("long1", pa.int64()),
              ("float1", pa.float32()),
              ("double1", pa.float64()),
              ("bytes1", pa.binary()),
              ("string1", pa.string()),
              (
                  "middle",
                  pa.struct(
                      [
                          (
                              "list",
                              pa.list_(
                                  pa.struct(
                                      [
                                          ("int1", pa.int32()),
                                          ("string1", pa.string()),
                                      ]
                                  )
                              ),
                          )
                      ]
                  ),
              ),
              (
                  "list",
                  pa.list_(
                      pa.struct(
                          [
                              ("int1", pa.int32()),
                              ("string1", pa.string()),
                          ]
                      )
                  ),
              ),
              (
                  "map",
                  pa.map_(
                      pa.string(),
                      pa.struct(
                          [
                              ("int1", pa.int32()),
                              ("string1", pa.string()),
                          ]
                      ),
                  ),
              ),
          ]
      )
      assert table.schema == expected_schema
  
imports: import pytest
  import decimal
  import datetime
  import pyarrow
  from pyarrow import fs
  from pyarrow.tests import util
label_desc: Use image node_id 6 for calling a global function with example usage: test_orcfile_empty(datadir) without return types