def fsdecode(path, os_name=os.name, fs_encoding=FS_ENCODING, errors=None):
if not isinstance(path, bytes):<EOL><INDENT>return path<EOL><DEDENT>if not errors:<EOL><INDENT>use_strict = PY_LEGACY or os_name == '<STR_LIT>'<EOL>errors = '<STR_LIT:strict>' if use_strict else '<STR_LIT>'<EOL><DEDENT>return path.decode(fs_encoding, errors=errors)<EOL>
Decode given path.

:param path: path will be decoded if using bytes
:type path: bytes or str
:param os_name: operative system name, defaults to os.name
:type os_name: str
:param fs_encoding: current filesystem encoding, defaults to autodetected
:type fs_encoding: str
:return: decoded path
:rtype: str