code: def is_file_hidden_win(abs_path, stat_res=None):
      """Is a file hidden?
  
      This only checks the file itself; it should be called in combination with
      checking the directory containing the file.
  
      Use is_hidden() instead to check the file and its parent directories.
  
      Parameters
      ----------
      abs_path : unicode
          The absolute path to check.
      stat_res : os.stat_result, optional
          Ignored on Windows, exists for compatibility with POSIX version of the
          function.
      """
      if os.path.basename(abs_path).startswith("."):
          return True
  
      win32_FILE_ATTRIBUTE_HIDDEN = 0x02
      import ctypes
  
      try:
          attrs = ctypes.windll.kernel32.GetFileAttributesW(
              py3compat.cast_unicode(abs_path)
          )
      except AttributeError:
          pass
      else:
          if attrs > 0 and attrs & win32_FILE_ATTRIBUTE_HIDDEN:
              return True
  
      return False
  
imports: import os
  import sys
  import stat
  import errno
  import tempfile
  import warnings
  from ipython_genutils import py3compat
  from contextlib import contextmanager
  from distutils.util import strtobool
  from ipython_genutils import py3compat
label_desc: Use image node_id 9 for calling a global function with example usage: is_file_hidden_win(abs_path, stat_res) and returns: False, True, True