It sounds like you copied an old solution from the internet. That does not work if the solution is too old, because they changed the definition of the function in 2021. Also note that it’s against the rules to copy someone else’s solution.
The current definition of the function returns two return values, as shown by the test code, but the old version only returned the parameters
variable. I suggest you get a clean copy of the notebook to get the correct template code to work with.