<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_provider():
    '''Get the current provider from config'''
    name = get_config('provider')
    available = entrypoints.get_all('udata.avatars')
    if name not in available:
        raise ValueError('Unknown avatar provider: {0}'.format(name))
    return available[name]