code: def test_nesterov_momentum(self):
      x_train, _, y_train, _ = simple_classification()
      compare_networks(
          # Test classes
          partial(algorithms.Momentum, nesterov=False),
          partial(algorithms.Momentum, nesterov=True),
          # Test data
          (x_train, y_train),
          # Network configurations
          network=[
              layers.Input(10),
              layers.Sigmoid(20),
              layers.Sigmoid(1),
          ],
          batch_size=None,
          step=0.25,
          momentum=0.9,
          shuffle_data=True,
          verbose=False,
          # Test configurations
          epochs=10,
          show_comparison_plot=False,
      )
  
file_path: neupy/tests/algorithms/gd/test_optimizers.py
imports: from functools import partial
  from neupy import algorithms, layers
  from helpers import simple_classification, compare_networks
  from base import BaseTestCase
label_desc: Use image node_id 2 for calling the MomentumTestCase obj's underlying member method code with example usage: obj.test_nesterov_momentum() without return types