def to_fs_path(uri):
<EOL>scheme, netloc, path, _params, _query, _fragment = urlparse(uri)<EOL>if netloc and path and scheme == '<STR_LIT:file>':<EOL><INDENT>value = "<STR_LIT>".format(netloc, path)<EOL><DEDENT>elif RE_DRIVE_LETTER_PATH.match(path):<EOL><INDENT>value = path[<NUM_LIT:1>].lower() + path[<NUM_LIT:2>:]<EOL><DEDENT>else:<EOL><INDENT>value = path<EOL><DEDENT>if IS_WIN:<EOL><INDENT>value = value.replace('<STR_LIT:/>', '<STR_LIT:\\>')<EOL><DEDENT>return value<EOL>
Returns the filesystem path of the given URI.

    Will handle UNC paths and normalize windows drive letters to lower-case. Also
    uses the platform specific path separator. Will *not* validate the path for
    invalid characters and semantics. Will *not* look at the scheme of this URI.