code: def test_graph_forward_clear_buffer(seed, clear_buffer):
      nn.clear_parameters()
  
      x = nn.Variable((2, 10))
      h = PF.affine(x, 10, name="hidden")
      y1 = PF.affine(h, 10, name="out1")
      y2 = PF.affine(h, 10, name="out2")
  
      # input
      rng = np.random.RandomState(seed)
      data = rng.randn(*x.shape)
  
      # reference values
      x.d = data
      y1.forward()
      y2.forward()
      ref_y1 = y1.d.copy()
      ref_y2 = y2.d.copy()
  
      # check
      nn.forward_all([y1, y2], clear_buffer=clear_buffer)
      assert_allclose(y1.d, ref_y1)
      assert_allclose(y2.d, ref_y2)
  
file_path: nnabla/python/test/test_forward_all.py
imports: from six.moves import range
  import pytest
  import numpy
  import nnabla
  import nnabla.functions
  import nnabla.parametric_functions
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 6 for calling a global function with example usage: test_graph_forward_clear_buffer(seed, clear_buffer) without return types