code: def check_libhdfs_present():
      if not pa.have_libhdfs():
          message = "No libhdfs available on system"
          if os.environ.get("PYARROW_HDFS_TEST_LIBHDFS_REQUIRE"):
              pytest.fail(message)
          else:
              pytest.skip(message)
  
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 1 for calling a global function with example usage: check_libhdfs_present() without return types