add clone_object function to generate_datasets
coretest
coretest