def load(fread):
    """
    Loads the configurations from the provided read file handler.
    
    @param fread: file
        A file read type object.
    @return: dictionary{string, object}
        The configuration dictionary.
    """
    assert fread, 'No reader provided'
    import yaml
    config = yaml.load(fread)
    if config is None:
        config = {}
    assert isinstance(config, dict), 'Invalid configuration loaded %s' % config
    return config
