code: def allclose(a, b):
      assert isinstance(a, (nn.Variable, nn.NdArray))
      assert isinstance(b, (np.ndarray, int, float))
      return np.allclose(
          a.data if isinstance(a, nn.NdArray) else a.d, b
      )
  
file_path: nnabla/python/test/test_indexing.py
imports: import pytest
  import numpy
  import nnabla
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 1 for calling a global function with example usage: allclose(a, b) and returns: np