docstr: Test another bad bijector function.
  
  This tests that an error is thrown if the bijector function produces
  something other than a bijector or a tensor
docstr_tok: ["Test","another","bad","bijector","function",".","This","tests","that","an","error","is","thrown","if","the","bijector","function","produces","something","other","than","a","bijector","or","a","tensor"]
code: def testOtherBadBijectorFn(self):
      """Test another bad bijector function.
  
      This tests that an error is thrown if the bijector function produces
      something other than a bijector or a tensor
      """
  
      def other_bad_glow_net(input_shape):
          del input_shape
          return lambda x: normal.Normal(x, 0)
  
      x = self._make_images()
      x = tf.constant(x, tf.float32)
  
      bijection = glow.Glow(
          output_shape=self.output_shape,
          num_glow_blocks=2,
          num_steps_per_block=1,
          coupling_bijector_fn=other_bad_glow_net,
          exit_bijector_fn=glow.GlowDefaultExitNetwork,
          grab_after_block=[0.5, 0.5],
          use_actnorm=False,
      )
      self.evaluate([v.initializer for v in bijection.variables])
      try:
          z = bijection.inverse(x)
          del z
          raise Exception(
              "If youre reading this, then something is wrong."
          )
  
      except ValueError:
          pass
  
imports: import functools
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import blockwise
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import composition
  from tensorflow_probability.python.bijectors import glow
  from tensorflow_probability.python.bijectors import identity
  from tensorflow_probability.python.bijectors import pad
  from tensorflow_probability.python.bijectors import sigmoid
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
  from tensorflow_probability.python.math.gradient import batch_jacobian
label_desc: Use image node_id 10 for calling the GlowTest obj's underlying member method code with example usage: obj.testOtherBadBijectorFn() and returns: function