code: def test_binary_error_forward(seed, ctx, func_name):
      ishape = [5, 6, 7]
      rng = np.random.RandomState(seed)
  
      inputs = [
          rng.rand(5, 6, 7).astype(np.float32),
          rng.rand(5, 6, 7).astype(np.float32),
      ]
  
      ref = ref_binary_error(inputs[0], inputs[1])
  
      x = nn.Variable(ishape)
      l = nn.Variable(ishape)
      y = F.binary_error(x, l)
      x.d = inputs[0]
      l.d = inputs[1]
      y.forward()
      res = y.d
  
      atol_f = 1e-6
      assert_allclose(ref, res, atol=atol_f)
  
file_path: nnabla/python/test/function/test_binary_error.py
imports: import pytest
  import numpy
  import nnabla
  import nnabla.functions
  from nbla_test_utils import list_context
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 2 for calling a global function with example usage: test_binary_error_forward(seed, ctx, func_name) without return types