<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def join_filter(sep, seq, pred=bool):
 """ Join with a filter. """

    return sep.join([text_type(i) for i in seq if pred(i)])