(group_set)
parse stix groups into appropriate data structures.

    arguments:
        group_set: list of stix-formatted group dicts
parse stix groups into appropriate data structures.
parse stix groups into appropriate data structures .
def parse_groups(group_set):
    """parse stix groups into appropriate data structures.

    arguments:
        group_set: list of stix-formatted group dicts
    """

    for entry in group_set:
        name=entry['name']
        cur_id=entry['id']
        if name not in group_to_id:
            group_to_id[name]=cur_id
            id_to_group[cur_id]=name
def parse_groups ( group_set ) : for entry in group_set : name = entry [ 'name' ] cur_id = entry [ 'id' ] if name not in group_to_id : group_to_id [ name ] = cur_id id_to_group [ cur_id ] = name