code: def test_fastparquet_read_with_hdfs():
      check_libhdfs_present()
      try:
          import snappy  # noqa
      except ImportError:
          pytest.skip("fastparquet test requires snappy")
  
      import pyarrow.parquet as pq
  
      fastparquet = pytest.importorskip("fastparquet")
  
      fs = hdfs_test_client()
  
      df = util.make_dataframe()
  
      table = pa.Table.from_pandas(df)
  
      path = "/tmp/testing.parquet"
      with fs.open(path, "wb") as f:
          pq.write_table(table, f)
  
      parquet_file = fastparquet.ParquetFile(path, open_with=fs.open)
  
      result = parquet_file.to_pandas()
      assert_frame_equal(result, df)
  
imports: import os
  import random
  from io import BytesIO
  from os.path import join
  import numpy
  import pytest
  import pyarrow
  from pyarrow.tests import util
  from pyarrow.tests.parquet.common import _test_dataframe
  from pyarrow.tests.parquet.test_dataset import _test_write_to_dataset_with_partitions, _test_write_to_dataset_no_partitions
  from pyarrow.util import guid
label_desc: Use image node_id 4 for calling a global function with example usage: test_fastparquet_read_with_hdfs() without return types