code: def test_dtype_from_out():
      x = array([-np.inf, 0.0, np.inf])
      y = array([2, 2, 2])
  
      t3 = isfinite(x, y)
      assert t3.dtype == y.dtype
  
imports: import numpy
  import pytest
  import scipy.sparse
  from ....core import enter_mode, tile
  from ...datasource import array, ones, tensor, empty
  from ...fetch import TensorFetch
  from ...linalg import matmul
  from ...core import Tensor, SparseTensor
  from ..None import add, subtract, truediv, log, frexp, around, isclose, isfinite, negative, cos, tree_add, tree_multiply, TensorAdd, TensorTreeAdd, TensorTreeMultiply, TensorSubtract, TensorLog, TensorIsclose, TensorGreaterThan
label_desc: Use image node_id 7 for calling a global function with example usage: test_dtype_from_out() without return types