How To Create A Tensor In Python