def METHOD_NAME(dataset_path: Path, clear: bool = False) -> None:
    try:
        dataset = _load_dataset(dataset_path)
        if clear:
            clear_store(dataset)
        view = get_view(dataset, external=False)
        export_dataset(dataset, view)
    except Exception:
        log.exception("Failed to export: %s" % dataset_path)
        sys.exit(1)