code: def get_filesystem(
      path: str, **kwargs: Any
  ) -> fsspec.AbstractFileSystem:
      """Returns the appropriate filesystem to use when handling the given path."""
      fs, _ = url_to_fs(path, **kwargs)
      return fs
  
imports: from typing import Any
  import fsspec
  from fsspec.core import url_to_fs
label_desc: Use image node_id 1 for calling a global function with example usage: get_filesystem(path) and returns: fs