code: def test_is_close_execution(setup):
      data = np.array([1.05, 1.0, 1.01, np.nan])
      data2 = np.array([1.04, 1.0, 1.03, np.nan])
  
      x = tensor(data, chunk_size=2)
      y = tensor(data2, chunk_size=3)
  
      z = isclose(x, y, atol=0.01)
  
      res = z.execute().fetch()
      expected = np.isclose(data, data2, atol=0.01)
      np.testing.assert_equal(res, expected)
  
      z = isclose(x, y, atol=0.01, equal_nan=True)
  
      res = z.execute().fetch()
      expected = np.isclose(data, data2, atol=0.01, equal_nan=True)
      np.testing.assert_equal(res, expected)
  
      # test tensor with scalar
      z = isclose(x, 1.0, atol=0.01)
      res = z.execute().fetch()
      expected = np.isclose(data, 1.0, atol=0.01)
      np.testing.assert_equal(res, expected)
      z = isclose(1.0, y, atol=0.01)
      res = z.execute().fetch()
      expected = np.isclose(1.0, data2, atol=0.01)
      np.testing.assert_equal(res, expected)
      z = isclose(1.0, 2.0, atol=0.01)
      res = z.execute().fetch()
      expected = np.isclose(1.0, 2.0, atol=0.01)
      np.testing.assert_equal(res, expected)
  
      # test sparse
      data = sps.csr_matrix(np.array([0, 1.0, 1.01, np.nan]))
      data2 = sps.csr_matrix(np.array([0, 1.0, 1.03, np.nan]))
  
      x = tensor(data, chunk_size=2)
      y = tensor(data2, chunk_size=3)
  
      z = isclose(x, y, atol=0.01)
  
      res = z.execute().fetch()
      expected = np.isclose(data.toarray(), data2.toarray(), atol=0.01)
      np.testing.assert_equal(res, expected)
  
      z = isclose(x, y, atol=0.01, equal_nan=True)
  
      res = z.execute().fetch()
      expected = np.isclose(
          data.toarray(), data2.toarray(), atol=0.01, equal_nan=True
      )
      np.testing.assert_equal(res, expected)
  
imports: import functools
  import operator
  import numpy
  import scipy.sparse
  import pytest
  from ....config import option_context
  from ....session import execute, fetch
  from ....tests.core import require_cupy
  from ....utils import ignore_warning
  from ...datasource import ones, tensor, zeros, arange
  from ..None import add, cos, truediv, frexp, modf, clip, isclose, arctan2, tree_add, tree_multiply
label_desc: Use image node_id 20 for calling a global function with example usage: test_is_close_execution(setup) without return types