def fetch_url(self, url):
url_path = urllib.parse.urlsplit(url).path<EOL>dst_path = os.path.basename(url_path)<EOL>dst_path = self.paths.prefixed(dst_path)<EOL>with LogTask('<STR_LIT>' % url):<EOL><INDENT>urllib.request.urlretrieve(url=os.path.expandvars(url), filename=dst_path)<EOL><DEDENT>return dst_path<EOL>
Retrieves the given url to the prefix

Args:
    url(str): Url to retrieve

Returns:
    str: path to the downloaded file