def METHOD_NAME(artist, title, url):
    title = title.replace('/', '__')
    directory = basedir.joinpath('examples/static/album_art') / artist
    directory.mkdir(parents=True, exist_ok=True)
    extension = Path(url).suffix
    target_file = directory / f'{title}{extension}'.replace('.jpeg', '.jpg')
    if target_file.exists():
        print('   ', title, 'already exists')
        return
    with open(target_file, 'wb') as f:
        f.write(session.get(url, headers=headers).content)
    print('   ', title, 'downloaded')