Wrap up several (or even one) plotly functions in one function - Python Jupyter notebook

I am working on Jupyter Python. I want to create a custom plot function by wrapping several Plotly functions inside a wrapper function, thereby not having to type the same thing over and over again. But it’s not working!

The system gives me no error, but no output comes out either. When I take the individual functions outside the wrapper function, they work individually.

Please advise.