def METHOD_NAME(out_dir):
    if not os.path.isfile(os.path.join(out_dir, CONFIG_FILENAME)):
        x_train, y_train, x_test, y_test = _generate_data()
        _write_data(out_dir, x_train, y_train, x_test, y_test)
    return _load_data(out_dir)