The notebook example Custom image, software specification for python function is using an outdated method (storage volume upload) that was replaced in 4.7.
Instead the custom software definition should now be added per the API as shown in the documentation.