train_test_split() method and using a variable for test_size code example Example: train_test_split example train_test_split example