code: def test_filesystem_uri(tmpdir):
      from pyarrow import orc
  
      table = pa.table({"a": [1, 2, 3]})
  
      directory = tmpdir / "data_dir"
      directory.mkdir()
      path = directory / "data.orc"
      orc.write_table(table, str(path))
  
      # filesystem object
      result = orc.read_table(path, filesystem=fs.LocalFileSystem())
      assert result.equals(table)
  
      # filesystem URI
      result = orc.read_table(
          "data_dir/data.orc", filesystem=util._filesystem_uri(tmpdir)
      )
      assert result.equals(table)
  
      # use the path only
      result = orc.read_table(util._filesystem_uri(path))
      assert result.equals(table)
  
imports: import pytest
  import decimal
  import datetime
  import pyarrow
  from pyarrow import fs
  from pyarrow.tests import util
label_desc: Use image node_id 7 for calling a global function with example usage: test_filesystem_uri(tmpdir) without return types