code: def _update_adagrad(p, g, G, lr, eps):
      G[...] = G + g * g
      p[...] = p - lr / (np.sqrt(G) + eps) * g
  
file_path: nnabla/python/test/solver/test_adagrad.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_adagrad(p, g, G, lr, eps) without return types