def format_configuration(name, value, nearest, path, item_type):
    """Helper function for formating configuration output
    :param str name: name of the section being set, eg. paging or log
    :param str value: new value of the section
    :param str nearest: value of the nearest set section
    :param str path: path to the nearest set section
    :param str item_type: type of the setting, eg. blank, radio or edit
    :return: dictionary with configuration settings
    """
    name = name.replace('_', ' ')
    
    if (name == "paging"):
        item_type = "radio"
    elif (name == "type"):
        item_type = "blank"

    return {
        'name': name,
        'value': value,
        'nearest': nearest,
        'path': path,
        'type': item_type,  
    }