def METHOD_NAME(config_file, isCreate=False, isSave=False):
    """ prepare config """
    if os.path.isfile(config_file):
        config = load_config(config_file)
        config = AttrDict(config)
    else:
        raise TypeError("%s is not a yaml file" % config_file)
    if isCreate:
        create_necessary_dirs(config)
    if isSave:
        save_files(config)
    return config