code: def value_tester(
      v_ref,
      v_act,
      rtol=1e-04,
      atol=1e-05,
      clear_no_need_grad=False,
      forward=True,
  ):
      from nbla_test_utils import ArrayDiffStats
  
      if forward:
          v_ref.forward(clear_no_need_grad)
          v_act.forward(clear_no_need_grad)
  
      print(ArrayDiffStats(v_ref.d, v_act.d))
      assert_allclose(v_ref.d, v_act.d, rtol=rtol, atol=atol)
  
file_path: nnabla/python/test/utils/test_graph_converters/graph_converter_test_utils.py
imports: import os
  import numpy
  import nnabla.functions
  import nnabla.parametric_functions
  import nnabla
  import nnabla.communicators
  from configparser import ConfigParser
  from collections import defaultdict
  from nnabla.ext_utils import get_extension_context
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 2 for calling a global function with example usage: value_tester(v_ref, v_act, rtol, atol, clear_no_need_grad, forward) without return types