code: def is_path(value):
      
      return value and isinstance(value, six.string_types) and (value[0] == posixpath.sep or value[:2] == CURRENT_DIR)
docs: Checks whether the given value represents a path, i.e. a string which starts with an indicator for absolute or
      relative paths.
  
      :param value: Value to check.
      :return: ``True``, if the value appears to be representing a path.
      :rtype: bool