docstr: Tests the output of the minimization for some presets.
docstr_tok: ["Tests","the","output","of","the","minimization","for","some","presets","."]
code: def test_minimize_preset(
      self,
      residuals,
      variables,
      max_iterations,
      final_objective_value,
      final_variables,
  ):
      """Tests the output of the minimization for some presets."""
      objective_value, output_variables = levenberg_marquardt.minimize(
          residuals, variables, max_iterations
      )
  
      with self.subTest(name="objective_value"):
          self.assertAllClose(objective_value, final_objective_value)
  
      with self.subTest(name="variables"):
          for output_variable, final_variable in zip(
              output_variables, final_variables
          ):
              self.assertAllClose(output_variable, final_variable)
  
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 3 for calling the OptimizerTest obj's underlying member method code with example usage: obj.test_minimize_preset(residuals, variables, max_iterations, final_objective_value, final_variables) without return types