code: def is_absolute_path (path):
      
      if os.name == 'nt':
          if re.search(r"^[a-zA-Z]:", path):
              return True
          path = path.replace("\\", "/")
      return path.startswith("/")
docs: Check if given path is absolute. On Windows absolute paths start
      with a drive letter. On all other systems absolute paths start with
      a slash.