docstr: Tests that the exception is raised.
docstr_tok: ["Tests","that","the","exception","is","raised","."]
code: def test_minimize_raised(self, error_msg, max_iterations, *shape):
      """Tests that the exception is raised."""
  
      def optimize(*variables):
          levenberg_marquardt.minimize(
              lambda x: x, variables, max_iterations
          )
  
      self.assert_exception_is_raised(optimize, error_msg, shape)
  
file_path: graphics/tensorflow_graphics/math/optimizer/tests/levenberg_marquardt_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from six.moves import zip
  import tensorflow
  from tensorflow_graphics.math.optimizer import levenberg_marquardt
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 2 for calling the OptimizerTest obj's underlying member method code with example usage: obj.test_minimize_raised(error_msg, max_iterations) without return types