def METHOD_NAME(ndata: int, header_ints: list[int], size: int):
    unused_table_id, nnodes_nbytes, nwords, *other = header_ints
    nvalues = ndata // 4
    assert nvalues > 0
    assert ndata % 4 == 0
    try:
        # assume nodes
        nnodes = nnodes_nbytes
        numwide = nvalues // nnodes
        assert nvalues % nnodes == 0
        if size == 4:
            assert numwide in [7, 10], numwide
        else:
            assert numwide == 14, numwide
    except AssertionError:
        # calculate the bytes
        if size == 4:
            numwide = 7
        elif numwide == 8:
            numwide = 14
        nnodes = nvalues // numwide
    assert ndata == nnodes * numwide * 4
    return nnodes, numwide