code: def _set_inputs(self, inputs):
      super()._set_inputs(inputs)
      if self.dtype is None:
          self.dtype = self.input.dtype
      if self.gpu is None:
          self.gpu = self.input.op.gpu
  
      # FIXME: remove when cupy supports other dtypes
      if self.gpu and self.dtype not in (np.float32, np.float64):
          raise NotImplementedError(
              "Sparse tensor on GPU only supports float32 and float64"
          )
  
imports: import itertools
  import numpy
  from ...config import options
  from ...serialization.serializables import FieldTypes, StringField, TupleField
  from ..utils import normalize_shape, decide_chunk_sizes
  from ..core import TensorOrder
  from ..operands import TensorOperand, TensorOperandMixin
label_desc: Use image node_id 1 for calling the TensorLike obj's underlying member method code with example usage: obj._set_inputs(inputs) without return types