code: def test_graph_more_than_2_outputs(seed, clear_buffer):
      count = 0
  
      def func_hook(f):
          nonlocal count
          if f.name == "Split":
              count += 1
  
      nn.clear_parameters()
  
      a = nn.Variable.from_numpy_array(np.ones((10,)))
      b = nn.Variable.from_numpy_array(np.ones((10,)))
      c = F.add2(a, b, inplace=True, outputs=[a.data])
      y = F.split(c, axis=0)
      nn.forward_all(y, function_pre_hook=func_hook)
  
      assert count == 1
  
      res = [x.d for x in y]
      assert_allclose(res, [2.0] * 10)
  
      a = nn.Variable.from_numpy_array(np.ones((10,)))
      b = nn.Variable.from_numpy_array(np.ones((10,)))
      c = F.add2(a, b, inplace=True, outputs=[a.data])
      y = F.split(c, axis=0)
      for yy in y:
          yy.forward()
      res = [x.d for x in y]
      assert_allclose(res, [11.0] * 10)
  
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 7 for calling a global function with example usage: test_graph_more_than_2_outputs(seed, clear_buffer) without return types