def make_icon_url(region, icon, size='large'):
    if not icon:
        return ''

    if size == 'small':
        size = 18
    else:
        size = 56

    return 'http://%s.media.blizzard.com/wow/icons/%d/%s.jpg' % (region, size, icon)
dataset/ETHPy150Open vishnevskiy/battlenet/battlenet/utils.py/make_icon_url/original