def add_super_group_id(individual_group_id, super_group_ids, treatment):
    """
    
    Add the super group id based on the *super_group_ids* dict and the
    treatment.
    """
    
    # If there was no direct interaction with a human participant
    # the super group id is simply the group id.
    # Note that this group id does not change by player for different super
    # games if there is only 'idividual' choice.
    if treatment in ['1H1A', '1H2A']:
        return individual_group_id
    else:
        for sg_id, group_ids in super_group_ids.items():
            if individual_group_id in group_ids:
                return sg_id