def _assert_category(self, category):
category = category.lower()<EOL>valid_categories = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>assert_msg = "<STR_LIT>" % (category)<EOL>assert (category in valid_categories), assert_msg<EOL>
Validate category argument