code: def test_add2_forward_backward(broadcast_dims, seed, ctx, func_name):
      from nbla_test_utils import function_tester
  
      rng = np.random.RandomState(seed)
      inputs = [
          rng.randn(2, 3, 4).astype(np.float32) * 2 for _ in range(2)
      ]
      for i in range(2):
          if broadcast_dims[i] is not None:
              for d in broadcast_dims[i]:
                  inputs[i] = inputs[i].mean(d, keepdims=True)
      function_tester(
          rng,
          F.add2,
          lambda x, y: x + y,
          inputs,
          ctx=ctx,
          func_name=func_name,
          atol_b=2e-3,
      )
  
file_path: nnabla/python/test/function/test_add2.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nbla_test_utils import list_context
label_desc: Use image node_id 1 for calling a global function with example usage: test_add2_forward_backward(broadcast_dims, seed, ctx, func_name) without return types