def get_split_user_partitions(user_partitions):
 return [user_partition for user_partition in user_partitions if (user_partition.scheme.name == 'random')]

def get_split_user_partitions ( user_partitions ) : return [ user_partition for user_partition in user_partitions if ( user_partition . scheme . name == 'random' ) ]
helper method that filters a list of user_partitions and returns just the ones that are suitable for the split_test module .