code: def _has_pkg_config(pkgname):
      import subprocess
  
      try:
          return (
              subprocess.call(
                  [_get_pkg_config_executable(), "--exists", pkgname]
              )
              == 0
          )
      except FileNotFoundError:
          return False
  
imports: import gc
  import importlib
  import os
  import platform
  import sys
  import warnings
  import pyarrow.lib
  from pyarrow.lib import BuildInfo, RuntimeInfo, set_timezone_db_path, MonthDayNano, VersionInfo, cpp_build_info, cpp_version, cpp_version_info, runtime_info, cpu_count, set_cpu_count, enable_signal_handlers, io_thread_count, set_io_thread_count
  from pyarrow.lib import null, bool_, int8, int16, int32, int64, uint8, uint16, uint32, uint64, time32, time64, timestamp, date32, date64, duration, month_day_nano_interval, float16, float32, float64, binary, string, utf8, large_binary, large_string, large_utf8, decimal128, decimal256, list_, large_list, map_, struct, union, sparse_union, dense_union, dictionary, run_end_encoded, fixed_shape_tensor, field, type_for_alias, DataType, DictionaryType, StructType, ListType, LargeListType, MapType, FixedSizeListType, UnionType, SparseUnionType, DenseUnionType, TimestampType, Time32Type, Time64Type, DurationType, FixedSizeBinaryType, Decimal128Type, Decimal256Type, BaseExtensionType, ExtensionType, RunEndEncodedType, FixedShapeTensorType, PyExtensionType, UnknownExtensionType, register_extension_type, unregister_extension_type, DictionaryMemo, KeyValueMetadata, Field, Schema, schema, unify_schemas, Array, Tensor, array, chunked_array, record_batch, nulls, repeat, SparseCOOTensor, SparseCSRMatrix, SparseCSCMatrix, SparseCSFTensor, infer_type, from_numpy_dtype, NullArray, NumericArray, IntegerArray, FloatingPointArray, BooleanArray, Int8Array, UInt8Array, Int16Array, UInt16Array, Int32Array, UInt32Array, Int64Array, UInt64Array, HalfFloatArray, FloatArray, DoubleArray, ListArray, LargeListArray, MapArray, FixedSizeListArray, UnionArray, BinaryArray, StringArray, LargeBinaryArray, LargeStringArray, FixedSizeBinaryArray, DictionaryArray, Date32Array, Date64Array, TimestampArray, Time32Array, Time64Array, DurationArray, MonthDayNanoIntervalArray, Decimal128Array, Decimal256Array, StructArray, ExtensionArray, RunEndEncodedArray, FixedShapeTensorArray, scalar, NA, _NULL, Scalar, NullScalar, BooleanScalar, Int8Scalar, Int16Scalar, Int32Scalar, Int64Scalar, UInt8Scalar, UInt16Scalar, UInt32Scalar, UInt64Scalar, HalfFloatScalar, FloatScalar, DoubleScalar, Decimal128Scalar, Decimal256Scalar, ListScalar, LargeListScalar, FixedSizeListScalar, Date32Scalar, Date64Scalar, Time32Scalar, Time64Scalar, TimestampScalar, DurationScalar, MonthDayNanoIntervalScalar, BinaryScalar, LargeBinaryScalar, StringScalar, LargeStringScalar, FixedSizeBinaryScalar, DictionaryScalar, MapScalar, StructScalar, UnionScalar, RunEndEncodedScalar, ExtensionScalar
  from pyarrow.lib import Buffer, ResizableBuffer, foreign_buffer, py_buffer, Codec, compress, decompress, allocate_buffer
  from pyarrow.lib import MemoryPool, LoggingMemoryPool, ProxyMemoryPool, total_allocated_bytes, set_memory_pool, default_memory_pool, system_memory_pool, jemalloc_memory_pool, mimalloc_memory_pool, logging_memory_pool, proxy_memory_pool, log_memory_allocations, jemalloc_set_decay_ms, supported_memory_backends
  from pyarrow.lib import NativeFile, PythonFile, BufferedInputStream, BufferedOutputStream, CacheOptions, CompressedInputStream, CompressedOutputStream, TransformInputStream, transcoding_input_stream, FixedSizeBufferWriter, BufferReader, BufferOutputStream, OSFile, MemoryMappedFile, memory_map, create_memory_map, MockOutputStream, input_stream, output_stream
  from pyarrow._hdfsio import HdfsFile, have_libhdfs
  from pyarrow.lib import ChunkedArray, RecordBatch, Table, table, concat_arrays, concat_tables, TableGroupBy, RecordBatchReader
  from pyarrow.lib import ArrowCancelled, ArrowCapacityError, ArrowException, ArrowKeyError, ArrowIndexError, ArrowInvalid, ArrowIOError, ArrowMemoryError, ArrowNotImplementedError, ArrowTypeError, ArrowSerializationError
  import pyarrow.hdfs
  from pyarrow.ipc import serialize_pandas, deserialize_pandas
  import pyarrow.ipc
  import pyarrow.types
  from pyarrow.filesystem import FileSystem
  from pyarrow.filesystem import LocalFileSystem
  from pyarrow.hdfs import HadoopFileSystem
  from pyarrow.util import _deprecate_api, _deprecate_class
  from pyarrow.ipc import Message, MessageReader, MetadataVersion, RecordBatchFileReader, RecordBatchFileWriter, RecordBatchStreamReader, RecordBatchStreamWriter
label_desc: Use image node_id 8 for calling a global function with example usage: _has_pkg_config(pkgname) and returns: unknown, False