<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def url2tmp(self, root, url):
 """ convert url path to filename """

        filename = url.rsplit('/', 1)[-1]
        return os.path.join(root, filename)