code: def test_levenberg_marquardt_exceptions(self):
      with self.assertRaises(ValueError):
          algorithms.LevenbergMarquardt(
              layers.Input(2) > layers.Sigmoid(3) > layers.Sigmoid(1),
              loss="categorical_crossentropy",
          )
  
      with self.assertRaises(ValueError):
          # Doesn't have step parameter
          algorithms.LevenbergMarquardt(
              layers.Input(2) > layers.Sigmoid(3) > layers.Sigmoid(1),
              step=0.01,
          )
  
file_path: neupy/tests/algorithms/gd/test_levmarq.py
imports: from functools import partial
  import numpy
  import tensorflow
  from sklearn import datasets, preprocessing
  from sklearn.model_selection import train_test_split
  from neupy import algorithms, layers
  from neupy.utils import asfloat
  from neupy.algorithms.gd.lev_marq import compute_jacobian
  from base import BaseTestCase
label_desc: Use image node_id 2 for calling the LevenbergMarquardtTestCase obj's underlying member method code with example usage: obj.test_levenberg_marquardt_exceptions() without return types