class_docstr: Functional tests for ExtractImagePatches op.
docstr: Test for passing weird things into ksizes.
docstr_tok: ["Test","for","passing","weird","things","into","ksizes","."]
code: def testInvalidAttributes(self):
      """Test for passing weird things into ksizes."""
      with self.assertRaisesRegex(TypeError, "Expected list"):
          image = constant_op.constant([0.0])
          ksizes = math_ops.cast(
              constant_op.constant(
                  dtype=dtypes.int16, value=[[1, 4], [5, 2]]
              ),
              dtype=dtypes.qint16,
          )
          strides = [1, 1, 1, 1]
          self.evaluate(
              array_ops.extract_image_patches(
                  image, ksizes=ksizes, strides=strides, padding="SAME"
              )
          )
  
file_path: tensorflow/tensorflow/python/kernel_tests/image_ops/extract_image_patches_op_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 8 for calling the ExtractImagePatches obj's underlying member method code with example usage: obj.testInvalidAttributes() without return types