code: def test_add_with_out_execution(setup):
      data1 = np.random.random((5, 9, 4))
      data2 = np.random.random((9, 4))
  
      arr1 = tensor(data1.copy(), chunk_size=3)
      arr2 = tensor(data2.copy(), chunk_size=3)
  
      add(arr1, arr2, out=arr1)
      res = arr1.execute().fetch()
      np.testing.assert_array_equal(res, data1 + data2)
  
      arr1 = tensor(data1.copy(), chunk_size=3)
      arr2 = tensor(data2.copy(), chunk_size=3)
  
      arr3 = add(arr1, arr2, out=arr1.astype("i4"), casting="unsafe")
      res = arr3.execute().fetch()
      np.testing.assert_array_equal(res, (data1 + data2).astype("i4"))
  
      arr1 = tensor(data1.copy(), chunk_size=3)
      arr2 = tensor(data2.copy(), chunk_size=3)
  
      arr3 = truediv(arr1, arr2, out=arr1, where=arr2 > 0.5)
      res = arr3.execute().fetch()
      np.testing.assert_array_equal(
          res,
          np.true_divide(
              data1, data2, out=data1.copy(), where=data2 > 0.5
          ),
      )
  
      arr1 = tensor(data1.copy(), chunk_size=4)
      arr2 = tensor(data2.copy(), chunk_size=4)
  
      arr3 = add(arr1, arr2, where=arr1 > 0.5)
      res = arr3.execute().fetch()
      expected = np.add(data1, data2, where=data1 > 0.5)
      np.testing.assert_array_equal(
          res[data1 > 0.5], expected[data1 > 0.5]
      )
  
      arr1 = tensor(data1.copy(), chunk_size=4)
  
      arr3 = add(arr1, 1, where=arr1 > 0.5)
      res = arr3.execute().fetch()
      expected = np.add(data1, 1, where=data1 > 0.5)
      np.testing.assert_array_equal(
          res[data1 > 0.5], expected[data1 > 0.5]
      )
  
      arr1 = tensor(data2.copy(), chunk_size=3)
  
      arr3 = add(arr1[:5, :], 1, out=arr1[-5:, :])
      res = arr3.execute().fetch()
      expected = np.add(data2[:5, :], 1)
      np.testing.assert_array_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 9 for calling a global function with example usage: test_add_with_out_execution(setup) without return types