code: def pa_fs(path):
      if path.startswith("hdfs"):  # hdfs://url:port/file_path
          fs = pa.hdfs.connect()
          path = path[len("hdfs://") :]
          return path, fs
      elif path.startswith("s3"):
          raise ValueError("aws s3 is not supported for now")
      else:  # Local path
          if path.startswith("file://"):
              path = path[len("file://") :]
          return path, pa.LocalFileSystem()
  
imports: import copy
  import os
  from collections import namedtuple
  from io import BytesIO
  import numpy
  import pyarrow
  from itertools import chain, islice
  from enum import Enum
  import json
label_desc: Use image node_id 10 for calling a global function with example usage: pa_fs(path) and returns: path,  fs, path,  pa