code: def test_compare_bp_and_hessian(self):
      x_train, _, y_train, _ = simple_classification()
      params = dict(
          weight=init.Uniform(-0.1, 0.1), bias=init.Uniform(-0.1, 0.1)
      )
  
      compare_networks(
          # Test classes
          partial(algorithms.GradientDescent, batch_size=None),
          partial(algorithms.HessianDiagonal, min_eigval=0.1),
          # Test data
          (x_train, y_train),
          # Network configurations
          network=[
              layers.Input(10),
              layers.Sigmoid(20, **params),
              layers.Sigmoid(1, **params),
          ],
          step=0.1,
          shuffle_data=True,
          verbose=False,
          # Test configurations
          epochs=50,
          show_comparison_plot=False,
      )
  
file_path: neupy/tests/algorithms/gd/test_hessdiag.py
imports: from functools import partial
  from neupy import algorithms, layers
  from neupy import init
  from helpers import compare_networks
  from helpers import simple_classification
  from base import BaseTestCase
label_desc: Use image node_id 2 for calling the HessianDiagonalTestCase obj's underlying member method code with example usage: obj.test_compare_bp_and_hessian() without return types