Fix ``visualize`` deprecation warnings
There are a lot of new deprecation warnings in the function tests due to the deprecation of visualize for FunctionInterface.
There are a lot of new deprecation warnings in the function tests due to the deprecation of visualize for FunctionInterface.