def deduplicate_param_dict(param_dict):
    """Get a parameter dict that has been deduplicated

    Parameters
    ----------
    param_dict
        The parameter dict returned by `model.collect_params()`

    Returns
    -------
    dedup_param_dict
    """
    dedup_param_dict = dict()
    param_uuid_set = set()
    for k in sorted(param_dict.keys()):
        v = param_dict[k]
        if v._uuid in param_uuid_set:
            continue
        dedup_param_dict[k] = v
        param_uuid_set.add(v._uuid)
    return dedup_param_dict