Generalization of copy_status_to_sample.py script that can use any input/output udf name.