Assignment 1, telling me the question is formatted wrong (not part of test, part of question)

# Test your code!
test_your_code.exercise_1a(book_title, author, year_published, available_copies)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In [7], line 2
      1 # Test your code!
----> 2 test_your_code.exercise_1a(book_title, author, year_published, available_copies)

NameError: name 'test_your_code' is not defined

how do I fix this error in the assignment? I had gotten all tests passed on all of the assignment components, but after I did the kernel restart and clear output step before submitting, now I’m getting a fail as posted.

Hi, welcome to the community. You have to run all the code cells from the top of the notebook anytime you open or restart. That will help with the error.