code: def test_set_tensor_inputs():
      t1 = tensor([1, 2], chunk_size=2)
      t2 = tensor([2, 3], chunk_size=2)
      t3 = t1 + t2
  
      t1c = copy(t1)
      t2c = copy(t2)
  
      assert t1c is not t1
      assert t2c is not t2
  
      assert t3.op.lhs is t1.data
      assert t3.op.rhs is t2.data
      assert t3.op.inputs == [t1.data, t2.data]
      assert t3.inputs == [t1.data, t2.data]
  
      with pytest.raises(StopIteration):
          t3.inputs = []
  
      t1 = tensor([1, 2], chunk_size=2)
      t2 = tensor([True, False], chunk_size=2)
      t3 = t1[t2]
  
      t1c = copy(t1)
      t2c = copy(t2)
      t3c = copy(t3)
      t3c.inputs = [t1c, t2c]
  
      with enter_mode(build=True):
          assert t3c.op.input is t1c.data
          assert t3c.op.indexes[0] is t2c.data
  
imports: import shutil
  import tempfile
  from copy import copy
  import numpy
  import scipy.sparse
  import pytest
  from ....None import dataframe
  from ....core import enter_mode, tile
  from ...None import ones, zeros, tensor, full, arange, diag, linspace, triu, tril, ones_like
  from ...core import Tensor, SparseTensor
  from ..None import array, fromtiledb, TensorTileDBDataSource, fromdense, asarray, ascontiguousarray, asfortranarray
  from ..tri import TensorTriu, TensorTril
  from ..zeros import TensorZeros
  from ..from_dense import DenseToSparse
  from ..array import CSRMatrixDataSource
  from ..ones import TensorOnes, TensorOnesLike
  from ..from_dataframe import from_dataframe
label_desc: Use image node_id 12 for calling a global function with example usage: test_set_tensor_inputs() without return types