docstr: Test sliding_window when data is a 1 dimensional tensor.
  
  data_shape: [5]
  total_dimensions: 1
  outer_dimensions: 0
  inner_dimensions: 0
  axis_dimension: 1
  
  result_shape: [3, 3]
docstr_tok: ["Test","sliding_window","when","data","is","a","1","dimensional","tensor",".","data_shape",":","[","5","]","total_dimensions",":","1","outer_dimensions",":","0","inner_dimensions",":","0","axis_dimension",":","1","result_shape",":","[","3",",","3","]"]
code: def test_sliding_window_for_one_dimensional_data(self):
      """Test sliding_window when data is a 1 dimensional tensor.
  
      data_shape: [5]
      total_dimensions: 1
      outer_dimensions: 0
      inner_dimensions: 0
      axis_dimension: 1
  
      result_shape: [3, 3]
      """
      data = constant_op.constant([1, 2, 3, 4, 5])
      width = 3
      axis = -1
  
      expected_result = constant_op.constant(
          [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
      )
      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 3 for calling the SlidingWindowOpTest obj's underlying member method code with example usage: obj.test_sliding_window_for_one_dimensional_data() without return types