code: def get_filesystem(path: _PATH, **kwargs: Any) -> AbstractFileSystem:
      fs, _ = url_to_fs(str(path), **kwargs)
      return fs
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/cloud_io.py
imports: import io
  import logging
  from pathlib import Path
  from typing import IO, Any, Dict, Union
  import fsspec
  import fsspec.utils
  import torch
  from fsspec.core import url_to_fs
  from fsspec.implementations.local import AbstractFileSystem
  from lightning_utilities.core.imports import module_available
  from lightning.fabric.utilities.types import _MAP_LOCATION_TYPE, _PATH
label_desc: Use image node_id 2 for calling a global function with example usage: get_filesystem(path) and returns: fs