def METHOD_NAME(
    dataset_path: Path,
    database_uri: str,
    batch_size: int = 5000,
    external: bool = False,
) -> None:
    try:
        dataset = _load_dataset(dataset_path)
        load_dataset_to_db(
            dataset,
            database_uri,
            batch_size=batch_size,
            external=external,
        )
    except Exception:
        log.exception("Failed to load dataset into database: %s" % dataset_path)
        sys.exit(1)