<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resource_url(path):
 """Get the a local filesystem url to a given resource. .. versionadded:: 3.0 Note that in version 3.0 we removed the use of Qt Resource files in favour of directly accessing on-disk resources. :param path: Path to resource e.g. /home/timlinux/foo/bar.png :type path: str :return: A valid file url e.g. file:///home/timlinux/foo/bar.png :rtype: str """

    url = QtCore.QUrl.fromLocalFile(path)
    return str(url.toString())