Refactor the Notebook Into a Parameterized Script With an I/O Contract