docstr: Test sliding_window when data has both inner and outer dimensions.
  
  data_shape: [2, 4, 3]
  total_dimensions: 3
  outer_dimensions: 1
  inner_dimensions: 1
  axis_dimension: 1
  
  result_shape: [2, 3, 2, 3]
docstr_tok: ["Test","sliding_window","when","data","has","both","inner","and","outer","dimensions",".","data_shape",":","[","2",",","4",",","3","]","total_dimensions",":","3","outer_dimensions",":","1","inner_dimensions",":","1","axis_dimension",":","1","result_shape",":","[","2",",","3",",","2",",","3","]"]
code: def test_sliding_window_for_multi_dimensional_data(self):
      """Test sliding_window when data has both inner and outer dimensions.
  
      data_shape: [2, 4, 3]
      total_dimensions: 3
      outer_dimensions: 1
      inner_dimensions: 1
      axis_dimension: 1
  
      result_shape: [2, 3, 2, 3]
      """
      data = constant_op.constant(
          [
              [[1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]],
              [[5, 5, 5], [6, 6, 6], [7, 7, 7], [8, 8, 8]],
          ]
      )
      width = 2
      axis = -2
  
      expected_result = constant_op.constant(
          [
              [
                  [[1, 1, 1], [2, 2, 2]],
                  [[2, 2, 2], [3, 3, 3]],
                  [[3, 3, 3], [4, 4, 4]],
              ],
              [
                  [[5, 5, 5], [6, 6, 6]],
                  [[6, 6, 6], [7, 7, 7]],
                  [[7, 7, 7], [8, 8, 8]],
              ],
          ]
      )  # pyformat: disable
      self._test_sliding_window_op(expected_result, data, width, axis)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import sliding_window_op
label_desc: Use image node_id 6 for calling the SlidingWindowOpTest obj's underlying member method code with example usage: obj.test_sliding_window_for_multi_dimensional_data() without return types