split_sample function

Split Sample