code: def checkpath(path_, verbose=VERYVERBOSE, n=None, info=VERYVERBOSE):
      r
      assert isinstance(path_, six.string_types), (
          'path_=%r is not a string. type(path_) = %r' % (path_, type(path_)))
      path_ = normpath(path_)
      if sys.platform.startswith('win32'):
          if path_.startswith('\\'):
              dirs = path_.split('\\')
              if len(dirs) > 1 and len(dirs[0]) == 0 and len(dirs[1]) == 1:
                  dirs[1] = dirs[1].upper() + ':'
                  path_ = '\\'.join(dirs[1:])
      does_exist = exists(path_)
      if verbose:
          pretty_path = path_ndir_split(path_, n)
          caller_name = util_dbg.get_caller_name(allow_genexpr=False)
          print('[%s] checkpath(%r)' % (caller_name, pretty_path))
          if does_exist:
              path_type = get_path_type(path_)
              print('[%s] ...(%s) exists' % (caller_name, path_type,))
          else:
              print('[%s] ... does not exist' % (caller_name))
      if not does_exist and info:
          _longest_path = longest_existing_path(path_)
          _longest_path_type = get_path_type(_longest_path)
          print('[util_path] ... The longest existing path is: %r' % _longest_path)
          print('[util_path] ... and has type %r' % (_longest_path_type,))
      return does_exist