convert_records function

General transform from arbitrary record shape to arbitrary record shape.