Convert the given file URL to a local file system path.
The 'file:' scheme prefix must be omitted unless *require_scheme*
is set to true.
The URL authority may be resolved with gethostbyname() if
*resolve_host* is set to true.
3.14: Windows drive letters are no longer converted to uppercase, and : characters not following a drive letter no longer cause an OSError exception to be raised on Windows.
3.14: The URL authority is discarded if it matches the local hostname. Otherwise, if the authority isn’t empty or localhost, then on Windows a UNC path is returned (as before), and on other platforms a URLError is raised.
3.14: The URL query and fragment components are discarded if present.
3.14: The require_scheme and resolve_host parameters were added.