<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_contents(self, el, no_iframe=False):
 """Get contents or contents in reverse."""

        if not no_iframe or not self.is_iframe(el):
            for content in el.contents:
                yield content