How to remove AssertionError

  1. Describe the issue briefly

  2. How much time have you spent debugging this issue?
    (Please spend at least 15 minutes to resolve the issue on your own before posting a new topic here)
    half an hour

  3. What is your hypothesis?

Don’t hard-code anything.
Don’t put import code anywhere, it must be at the top of the file.

still same
i didn’t import anywhere in the middle of the code.

You are still hard-coding, make sure to use all the parameters of the given function.
You URL isn’t correct.