def METHOD_NAME():
    artist = Artist.objects.create(pk=3, name='Black Sabbath')
    album = Album.objects.create(pk=7, name='Heaven & Hell', artist=artist, year=1980)
    with register_path_decoding(artist_for_album=lambda string, key, **_: Album.objects.get(pk=string).artist):
        actual = decode_path_components(
            request=req('get'),
            artist_for_album=str(album.pk),
        )
        expected = dict(
            artist_for_album=artist,
        )
        assert actual == expected