def METHOD_NAME(dshape, scale_h, scale_w, height_axis, width_axis):
    out = output_tensor((4,), "int64")
    for i in const_range(4):
        out[i] = int64(dshape[i])
    out[height_axis] = int64(round(dshape[height_axis] * scale_h[()]))
    out[width_axis] = int64(round(dshape[width_axis] * scale_w[()]))
    return out