<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def static_parser(static):
 """Parse object describing static routes. Might be a list, a dict or a list of dicts. """

        if static is None:
            return

        if isinstance(static, dict):
            static = static.items()

        for group in static:
            if not isinstance(group, dict):
                yield group
                continue

            for item in group.items():
                yield item