import pyogrio

def read_dataset(path: str, layer: str | None = None, **kwargs):
    """Read a vector dataset with Pyogrio into a GeoDataFrame.
    
    Returns:
        geopandas.GeoDataFrame: The dataset content.
    """
    return pyogrio.read_dataframe(path, layer=layer, **kwargs)

