def _get_kwargs(self, category, tag):
vals = {<EOL>'<STR_LIT>': category,<EOL>'<STR_LIT>': tag<EOL>}<EOL>kwargs = {}<EOL>for k, v in vals.items():<EOL><INDENT>if v:<EOL><INDENT>kwargs[k] = v<EOL><DEDENT><DEDENT>return kwargs<EOL>
Helper function for getting category/tag kwargs.