How to split train test data using python

Are you asking for Rasa or in general?