code: def ref_binary_error(x, l):
      y = []
      for x_, l_ in zip(x, l):
          y.append((x_ >= 0.5) != (l_ >= 0.5))
      return np.array(y).reshape(x.shape)
  
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 1 for calling a global function with example usage: ref_binary_error(x, l) and returns: np