def _validate_dataset(dataset):
    """
    Confirm a valid ICESat-2 dataset was specified
    """
    if isinstance(dataset, str):
        dataset = str.upper(dataset)
        assert dataset in [
            "ATL01",
            "ATL02",
            "ATL03",
            "ATL04",
            "ATL06",
            "ATL07",
            "ATL08",
            "ATL09",
            "ATL10",
            "ATL12",
            "ATL13",
        ], "Please enter a valid dataset"
    else:
        raise TypeError("Please enter a dataset string")
    return dataset