class_docstr: To run: "python -m saliency.tf1.integrated_gradients_test" from the top-level directory.
class_docstr_tok: ["To","run",":","``","python","-m","saliency.tf1.integrated_gradients_test","''","from","the","top-level","directory","."]
docstr: Tests that an error is thrown when x tensor is set up incorrectly.
docstr_tok: ["Tests","that","an","error","is","thrown","when","x","tensor","is","set","up","incorrectly","."]
code: def testValidateTensorsErrorY(self):
      """Tests that an error is thrown when x tensor is set up incorrectly."""
      x_steps = 1000
      batch_size = 9
      base_instance = base.TF1CoreSaliency(
          self.graph, self.sess, self.y_indexed, self.x
      )
      expected_error = base.Y_SHAPE_ERROR_MESSAGE.format(
          "\\[None\\]", "\\[\\]"
      )
  
      with self.assertRaisesRegex(ValueError, expected_error):
          base_instance.validate_xy_tensor_shape(x_steps, batch_size)
  
file_path: saliency/saliency/tf1/base_test.py
imports: import unittest
  from .None import base
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the BaseTest obj's underlying member method code with example usage: obj.testValidateTensorsErrorY() without return types