def iterate_items(dictish):
if hasattr(dictish, '<STR_LIT>'):<EOL><INDENT>return dictish.iteritems()<EOL><DEDENT>if hasattr(dictish, '<STR_LIT>'):<EOL><INDENT>return dictish.items()<EOL><DEDENT>return dictish<EOL>
Return a consistent (key, value) iterable on dict-like objects,
    including lists of tuple pairs.

    Example:

        >>> list(iterate_items({'a': 1}))
        [('a', 1)]
        >>> list(iterate_items([('a', 1), ('b', 2)]))
        [('a', 1), ('b', 2)]