code: def path_exists(path):
      # try on the filesystem first
      if os.path.exists(path):
          return True
      # figure out if a PEP 302 loader is around
      try:
          loader = __loader__
          # XXX the code below assumes a 'zipimport.zipimporter' instance
          # XXX should be easy to generalize, but too lazy right now to write it
          archive_path = getattr(loader, "archive", None)
          if archive_path:
              normpath = os.path.normpath(path)
              if normpath.startswith(archive_path):
                  arcname = normpath[len(archive_path) + 1 :]
                  try:
                      loader.get_data(arcname)
                      return True
                  except IOError:
                      return False
      except NameError:
          pass
      return False
  
imports: from __future__ import absolute_import
  import os
  import sys
  import re
  import io
  import codecs
  import shutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 13 for calling a global function with example usage: path_exists(path) and returns: False, True, True, False