def METHOD_NAME(etypes):
    if ('CTRIA3', 'PSHELL') in etypes or ('CQUAD4', 'PSHELL') in etypes:
        for etype, ptype in etypes:
            assert etype in ['CTRIA3', 'CQUAD4'], etypes
            assert ptype in ['PSHELL'], etypes
        group = 'shell'
    elif (('CTETRA', 'PSOLID') in etypes or
          ('CPENTA', 'PSOLID') in etypes or
          ('CHEXA', 'PSOLID') in etypes):
        for etype, ptype in etypes:
            assert etype in ['CTETRA', 'CPENTA', 'CHEXA'], etypes
            assert ptype in ['PSOLID'], etypes
        group = 'solid'
    elif ('CBAR', 'PBAR') in etypes or ('CBAR', 'PBARL') in etypes:
        for etype, ptype in etypes:
            assert etype in ['CBAR'], etypes
            assert ptype in ['PBAR', 'PBARL'], etypes
        group = 'bar'
    else:
        raise NotImplementedError(etypes)
    return group