<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def apply_filter_list(func, obj):
 """Apply `func` to list or tuple `obj` element-wise and directly otherwise."""

    if isinstance(obj, (list, tuple)):
        return [func(item) for item in obj]
    return func(obj)