<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prime_menu_items(self, menu_items):
 """ A generator method that takes a list of ``MenuItem`` or ``Page`` objects and sets a number of additional attributes on each item that are useful in menu templates. """

        for item in menu_items:
            item = self._prime_menu_item(item)
            if item is not None:
                yield item