code: def _is_local_fs(fs):
      """Check if an fsspec file-system is local"""
      return fs and (
          isinstance(fs, LocalFileSystem)
          # Check wrapped pyarrow filesystem
          or _is_local_fs_pyarrow(fs)
      )
  
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 1 for calling a global function with example usage: _is_local_fs(fs) and returns: unknown