<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iter_ensure_instance(iterable, types):
 """ Iterate over object and check each item type Traceback (most recent call last):
 TypeError: Traceback (most recent call last):
 TypeError: """

    ensure_instance(iterable, Iterable)
    [ ensure_instance(item, types) for item in iterable ]