The function only takes two arguments, but you passed three
This answer cites ChatGPT
as the reason for an error in the number of arguments when running python programs.
1. Function defined in class does not set self;
2. We have already initialized a function with the same name as the class, so when we call the class again, we call the function instead of the class