code: def test_where_execution(setup):
      raw_cond = np.random.randint(0, 2, size=(4, 4), dtype="?")
      raw_x = np.random.rand(4, 1)
      raw_y = np.random.rand(4, 4)
  
      cond, x, y = (
          tensor(raw_cond, chunk_size=2),
          tensor(raw_x, chunk_size=2),
          tensor(raw_y, chunk_size=2),
      )
  
      arr = where(cond, x, y)
      res = arr.execute().fetch()
      assert (
          np.array_equal(res, np.where(raw_cond, raw_x, raw_y)) is True
      )
  
      raw_cond = sps.csr_matrix(
          np.random.randint(0, 2, size=(4, 4), dtype="?")
      )
      raw_x = sps.random(4, 1, density=0.1)
      raw_y = sps.random(4, 4, density=0.1)
  
      cond, x, y = (
          tensor(raw_cond, chunk_size=2),
          tensor(raw_x, chunk_size=2),
          tensor(raw_y, chunk_size=2),
      )
  
      arr = where(cond, x, y)
      res = arr.execute().fetch()
      assert (
          np.array_equal(
              res.toarray(),
              np.where(
                  raw_cond.toarray(), raw_x.toarray(), raw_y.toarray()
              ),
          )
          is True
      )
  
      # GH 2009
      raw_x = np.arange(9.0).reshape(3, 3)
      x = arange(9.0).reshape(3, 3)
      arr = where(x < 5, 2, -1)
      res = arr.execute().fetch()
      np.testing.assert_array_equal(res, np.where(raw_x < 5, 2, -1))
  
imports: import numpy
  import scipy.sparse
  import pandas
  import pytest
  from ....None import dataframe
  from ....None import tensor
  from ....None import execute, fetch
  from ....tests.core import require_cupy
  from ...datasource import tensor, ones, zeros, arange
  from ..None import copyto, transpose, moveaxis, broadcast_to, broadcast_arrays, where, expand_dims, rollaxis, atleast_1d, atleast_2d, atleast_3d, argwhere, array_split, split, hsplit, vsplit, dsplit, roll, squeeze, diff, ediff1d, flip, flipud, fliplr, repeat, tile, isin, searchsorted, unique, sort, argsort, partition, argpartition, topk, argtopk, trapz, shape, to_gpu, to_cpu, swapaxes
label_desc: Use image node_id 9 for calling a global function with example usage: test_where_execution(setup) without return types