script to create split datasets.