def METHOD_NAME(self, sendbuf, recvbuf_spec):
    receive_arr = recvbuf_spec[0]
    receive_sizes = recvbuf_spec[1]
    assert len(receive_arr) == sum(
        receive_sizes
    ), "Gathering arrays to root cannot be done with mismatched sizes"
    receive_arr[:] = sendbuf[:]