function slice3d_(x, begin, size) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "slice3d");
    _util.assert($x.rank === 3, ()=>`slice3d expects a rank-3 tensor, but got a rank-${$x.rank} tensor`);
    return (0, _slice.slice)($x, begin, size);
}
Extracts a 3D slice from a 3D array starting at coordinates `begin` and
is of size `size`. See `slice` for details.