code: def _update_nesterov(p, g, v, lr, momentum):
      v_prev = v.copy()
      v[...] = momentum * v - lr * g
      p[...] = p + -momentum * v_prev + (1 + momentum) * v
  
file_path: nnabla/python/test/solver/test_nesterov.py
imports: import pytest
  import nnabla.solvers
  import numpy
  from solver_test_utils import solver_tester, RefSolver
  from nbla_test_utils import list_context
label_desc: Use image node_id 1 for calling a global function with example usage: _update_nesterov(p, g, v, lr, momentum) without return types