eliminated is_Tensor from basic.py