How to split train test data using python

i know that rasa split nlu command works in terminal but i want run script using python