'Allow callers to configure the stub server using the /set_config URL.
Arguments:
config (dict): Configuration dictionary.
Raises:
YouTubeConfigError'

@classmethod
def configure(cls, config):

    youtube_stub_config_url = (cls.URL + 'set_config')
    config_data = {param: json.dumps(value) for (param, value) in config.items()}
    response = requests.put(youtube_stub_config_url, data=config_data)
    if (not response.ok):
        raise YouTubeConfigError('YouTube    Server    Configuration    Failed.    URL    {0},    Configuration    Data:    {1},    Status    was    {2}'.format(youtube_stub_config_url, config, response.status_code))
