<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_one_of(obj, types):
 """Return true iff obj is an instance of one of the types."""

    for type_ in types:
        if isinstance(obj, type_):
            return True
    return False