code: def testReductionOnInnerAxis(self):
      test_data = constant_op.constant(
          [
              [[1.0, 2.0, 3.0], [10.0, 20.0, 30.0]],
              [[4.0, 5.0, 6.0], [40.0, 50.0, 60.0]],
          ]
      )
      op = ngrams_op.ngrams(
          test_data,
          width=2,
          axis=-2,
          reduction_type=ngrams_op.Reduction.SUM,
      )
      expected_values = [[[11.0, 22.0, 33.0]], [[44.0, 55.0, 66.0]]]
  
      self.assertAllEqual(expected_values, op)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import tensorflow_text
  from tensorflow.lite.python import interpreter
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.core.pybinds import tflite_registrar
  from tensorflow_text.python.ops import ngrams_op
label_desc: Use image node_id 10 for calling the NgramsOpTest obj's underlying member method code with example usage: obj.testReductionOnInnerAxis() without return types