I'd swap "Generates a" for "Return a". I'd also rename the function to something like ```transform_fn_factory``` to avoid confusion.