code: def check_sshfs_installation():
      """
      Utility function to check sshfs installation and user permission to execute sshfs.
      Raises errors with hints to install sshfs based on the platform
      """
      sshfs_executable = shutil.which("sshfs")
      if not sshfs_executable:
          if platform.system().lower() == "darwin":
              raise subprocess.SubprocessError(
                  "Could not find sshfs installation. \n"
                  "To install sshfs please run the following commands:\n"
                  "brew install macfuse \n"
                  "brew install gromgit/fuse/sshfs\n"
                  "or alternatively follow the instructions here:"
                  "https://osxfuse.github.io/"
              )
          else:
              raise subprocess.SubprocessError(
                  "Could not find sshfs installation. \n"
                  "To install sshfs please run the following commands:\n"
                  "apt-get update\n"
                  "apt-get install sshfs"
              )
  
      # check user permission to execute sshfs
      if not os.access(sshfs_executable, os.EX_OK):
          username = get_username()
          raise PermissionError(
              f"User {username} does not have sufficient permissions to run sshfs command."
          )
  
file_path: aim/aim/ext/sshfs/utils.py
imports: import os
  import platform
  import shutil
  import subprocess
  import time
  import logging
  from typing import Optional, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: check_sshfs_installation() without return types