def raster_ds_shape(raster_ds):
    """Return the number of rows and columns in an opened raster dataset

    Parameters
    ----------
    raster_ds :
        Opened raster dataset.

    Returns
    -------
    tuple of raster rows and columns

    """
    return raster_ds.RasterYSize, raster_ds.RasterXSize
