code: def _file_type_info(path):
      typeDesc, icon, iconTooltip, viewer = _base_file_type_info(path)
      if os.path.islink(path):
          target = util.realpath(path)
          link_type = "directory" if os.path.isdir(target) else "file"
          if target.startswith(var.runs_dir()):
              typeDesc = "Link to operation output"
          elif target.startswith(var.cache_dir()):
              typeDesc = f"Link to resource {link_type}"
          else:
              typeDesc = "Link"
          icon = (
              "folder-move" if link_type == "directory" else "file-send"
          )
          iconTooltip = "Link"
      return typeDesc, icon, iconTooltip, viewer
  
imports: import logging
  import os
  import re
  import guild
  from guild import batch_util
  from guild import click_util
  from guild import config
  from guild import index
  from guild import run
  from guild import run_util
  from guild import util
  from guild import var
  from .None import compare_impl
  from .None import runs_impl
label_desc: Use image node_id 15 for calling a global function with example usage: _file_type_info(path) and returns: typeDesc,  icon,  iconTooltip,  viewer