code: def test_logical_binary_compare_forward_backward(
      seed, fname, ctx, func_name
  ):
      func = getattr(F, fname)
      opstr = opstrs[fname]
      ref_func = eval("lambda x, y: x {} y".format(opstr))
      rng = np.random.RandomState(seed)
      inputs = [
          rng.randint(0, 2, size=(2, 3, 4)).astype(np.float32)
          for _ in range(2)
      ]
      inputs[0][..., :2] = inputs[1][..., :2]
      function_tester(
          rng,
          func,
          ref_func,
          inputs,
          ctx=ctx,
          backward=[False, False],
          func_name=func_name,
      )
  
file_path: nnabla/python/test/function/test_logical.py
imports: import pytest
  import numpy
  import nnabla.functions
  from nbla_test_utils import function_tester, list_ctx_and_func_name
label_desc: Use image node_id 4 for calling a global function with example usage: test_logical_binary_compare_forward_backward(seed, fname, ctx, func_name) without return types