class_docstr: Base class for testing the reshape transformation.
  
  Methods defined in this class call a method self.build_shapes() that
  is implemented by subclasses defined below, returning respectively
   ReshapeBijectorTestStatic: static shapes,
   ReshapeBijectorTestDynamic: shape placeholders of known ndims, and
  so that each test in this base class is automatically run over all
  three cases. The subclasses also implement assertRaisesError to test
  for either Python exceptions (in the case of static shapes) or
  TensorFlow op errors (dynamic shapes).
class_docstr_tok: ["Base","class","for","testing","the","reshape","transformation",".","Methods","defined","in","this","class","call","a","method","self.build_shapes","(",")","that","is","implemented","by","subclasses","defined","below",",","returning","respectively","ReshapeBijectorTestStatic",":","static","shapes",",","ReshapeBijectorTestDynamic",":","shape","placeholders","of","known","ndims",",","and","so","that","each","test","in","this","base","class","is","automatically","run","over","all","three","cases",".","The","subclasses","also","implement","assertRaisesError","to","test","for","either","Python","exceptions","(","in","the","case","of","static","shapes",")","or","TensorFlow","op","errors","(","dynamic","shapes",")","."]
code: def _testInputOutputMismatchOpError(self, expected_error_message):
      x1 = np.random.randn(4, 2, 3)
      x2 = np.random.randn(4, 1, 1, 5)
  
      shape_in, shape_out = self.build_shapes([2, 3], [1, 1, 5])
      with self.assertRaisesError(expected_error_message):
          bijector = reshape.Reshape(
              event_shape_out=shape_out,
              event_shape_in=shape_in,
              validate_args=True,
          )
          self.evaluate(bijector.forward(x1))
      with self.assertRaisesError(expected_error_message):
          bijector = reshape.Reshape(
              event_shape_out=shape_out,
              event_shape_in=shape_in,
              validate_args=True,
          )
          self.evaluate(bijector.inverse(x2))
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import identity
  from tensorflow_probability.python.bijectors import reshape
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 6 for calling the _ReshapeBijectorTest obj's underlying member method code with example usage: obj._testInputOutputMismatchOpError(expected_error_message) without return types