Transformations are the key to such codes, and they rely on math that predates computing as we know it by centuries. There ...
def test_solution(self, nums, target, result): ...
The following cell is not shown either in the book. It creates the images/end_to_end_project folder (if it doesn't already exist), and it defines the save_fig() function which is used through this ...