def METHOD_NAME(nastran_model: BDF, element_sets_temp: dict[str, list[int]]):
    ctria3s = []
    cquad4s = []
    ctetra4s = []
    ctetra10s = []
    chexa8s = []
    chexa20s = []
    element_types = {
        'cpe3' : ctria3s, # CTRIA3
        'cpe4' : cquad4s,
        'c3d10h' : ctetra10s,
        'c3d4r' : ctetra4s,
        'c3d8r' : chexa8s,
        'c3d20r' : chexa20s,
    }
    for eid, elem in nastran_model.elements.items():
        pid = elem.pid
        nidsi = elem.nodes
        if elem.type in ['CTRIA3']:
            ctria3s.append([eid] + nidsi)
        elif elem.type in ['CQUAD4']:
            cquad4s.append([eid] + nidsi)
        elif elem.type in ['CTETRA4']:
            ctetra4s.append([eid] + nidsi)
        elif elem.type in ['CTETRA10']:
            ctetra10s.append([eid] + nidsi)
        elif elem.type in ['CHEXA8']:
            chexa8s.append([eid] + nidsi)
        elif elem.type in ['CHEXA20']:
            chexa20s.append([eid] + nidsi)
        else:
            print(elem)
        element_sets_temp[pid].append(eid)
    assert len(element_sets_temp)
    assert len(element_types)
    return element_types, element_sets_temp