<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def implementations(interface, recurse=True, abstract=False):
 """Returns the components implementing interface, and if recurse, any of the descendants of interface. If abstract is True, also return the abstract implementations."""

    result = []
    find_implementations(interface, recurse, abstract, result)
    return result