def get_alias(dataset):
    """Get alias for dataset.

    Parameters
    ----------
    dataset : dict
        Dataset metadata.

    Returns
    -------
    str
        Alias.

    """
    alias = f"{dataset['project']} dataset {dataset['dataset']}"
    additional_info = []
    for key in ('mip', 'exp', 'ensemble'):
        if key in dataset:
            additional_info.append(dataset[key])
    if additional_info:
        alias += f" ({', '.join(additional_info)})"
    if 'start_year' in dataset and 'end_year' in dataset:
        alias += f" from {dataset['start_year']:d} to {dataset['end_year']:d}"
    return alias