code: def _is_local_fs_pyarrow(fs):
      """Check if a pyarrow-based file-system is local"""
      if fs:
          if hasattr(fs, "fs"):
              # ArrowFSWrapper will have an "fs" attribute
              return _is_local_fs_pyarrow(fs.fs)
          elif hasattr(fs, "type_name"):
              # pa.fs.LocalFileSystem will have "type_name" attribute
              return fs.type_name == "local"
      return False
  
imports: from __future__ import annotations
  import json
  from typing import Protocol, runtime_checkable
  from uuid import uuid4
  import fsspec
  import pandas
  from fsspec.implementations.local import LocalFileSystem
  from packaging.version import parse
label_desc: Use image node_id 2 for calling a global function with example usage: _is_local_fs_pyarrow(fs) and returns: False, _is_local_fs_pyarrow, unknown