code: def _get_fs_type(path):
      partition = {}
      for part in psutil.disk_partitions(all=True):
          if part.fstype:
              try:
                  mountpoint = pathlib.Path(part.mountpoint).resolve()
                  partition[mountpoint] = (
                      part.fstype + " on " + part.device
                  )
              except PermissionError:
                  pass
  
      # need to follow the symlink: https://github.com/iterative/dvc/issues/5065
      path = pathlib.Path(path).resolve()
  
      for parent in itertools.chain([path], path.parents):
          if parent in partition:
              return partition[parent]
      return ("unknown", "none")
  
imports: import importlib.metadata
  import itertools
  import os
  import pathlib
  import platform
  import psutil
  from dvc import PKG, __version__
  from dvc.exceptions import NotDvcRepoError
  from dvc.fs import Schemes, generic, get_fs_cls, get_fs_config, registry
  from dvc.repo import Repo
  from dvc.scm import SCMError
  from dvc.utils import error_link
label_desc: Use image node_id 8 for calling a global function with example usage: _get_fs_type(path) and returns: str,  str, partition