def METHOD_NAME(value, octal=False):
    """
    Unescape a string. A hexadecimal (\x20) or octal (\040) blank will
    be replaced by their ASCII representation.
    Example:
    - /srv/dev-disk-by-label-xx\x20yy => /srv/dev-disk-by-label-xx yy
    - /srv/dev-disk-by-label-xx\040yy => /srv/dev-disk-by-label-xx yy
    :param value: The value that will be unescaped.
    :type value: str
    :param octal: If ``True``, convert octal values, otherwise
        hexadecimal. Defaults to ``False``.
    :type octal: bool
    :return: The unescaped string.
    :rtype: str
    """
    return value.replace('\\040' if octal else '\\x20', ' ')