function rotateWithOffset_(image, radians, fillValue = 0, center = 0.5) {
    const $image = (0, _tensorUtilEnv.convertToTensor)(image, "image", "rotateWithOffset", "float32");
    _util.assert($image.rank === 4, ()=>"Error in rotateWithOffset: image must be rank 4," + `but got rank ${$image.rank}.`);
    const inputs = {
        image: $image
    };
    const attrs = {
        radians,
        fillValue,
        center
    };
    const res = (0, _engine.ENGINE).runKernel((0, _kernelNames.RotateWithOffset), inputs, attrs);
    return res;
}
Rotates the input image tensor counter-clockwise with an optional offset
center of rotation. Currently available in the CPU, WebGL, and WASM backends.

@param image 4d tensor of shape `[batch, imageHeight, imageWidth, depth]`.
@param radians The amount of rotation.
@param fillValue The value to fill in the empty space leftover
    after rotation. Can be either a single grayscale value (0-255), or an
    array of three numbers `[red, green, blue]` specifying the red, green,
    and blue channels. Defaults to `0` (black).
@param center The center of rotation. Can be either a single value (0-1), or
    an array of two numbers `[centerX, centerY]`. Defaults to `0.5` (rotates
    the image around its center).

@doc {heading: 'Operations', subheading: 'Images', namespace: 'image'}