def gp_tuple_to_dict(gp_tuple):
    """Convert a groupings parameters (gp) tuple into a dict suitable
    to pass to the ``grouping_parameters`` CompoundTemplate.__init__
    kwarg.
    """
    params = [{'min': 1}, {'max': 1}, {'name': None}, {'possible_types': None},
              {'is_separator': False}, {'inner_sep_type': None}]
    d = {}
    for i, param in enumerate(params):
        if i < len(gp_tuple):
            d[list(param.keys())[0]] = gp_tuple[i]
        else:
            d[list(param.keys())[0]] = list(param.values())[0]
    return d