Fixing the warning regarding deprecated functions may variate, depending on the packages at use.
In my particular case, I was using the "Line" function from "plotly" package. This function was being called from another package. In the latter package there was a .py file (I used "IDLE (Python 3.8 64-bit)" to edit it) that had the following code line:
from plotly.graph_objs import Line
Then, I first tried replacing that line with the suggestions provided by the warning. After a couple of tries, I ended up using the code line:
from plotly.graph_objs.scatter.marker import Line
My final script works fine like in the beginning, but this time with no warnings at all.
Note: In my case, the packages were installed in "C:\Users\NIP\AppData\Roaming\Python\Python38\site-packages"
I hope this helps.