I am trying to use train_test_split function and write:
train_test_split
from sklearn.model_selection import train_test_split
and this causes
Latest Stable release of sklearn 0.20.0 has train_test_split is under model_selection not under cross_validation
In order to check your sklearn version :
import sklearn print (sklearn.version) 0.20.2