<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def search_golr_wrap(id, category, **args):
 """ performs searches in both directions """

    #assocs1 = search_associations_compact(object=id, subject_category=category, **args)
    #assocs2 = search_associations_compact(subject=id, object_category=category, **args)
    assocs1, facets1 = search_compact_wrap(object=id, subject_category=category, **args)
    assocs2, facets2 = search_compact_wrap(subject=id, object_category=category, **args)
    facets = facets1
    if len(assocs2) > 0:
        facets = facets2
    return assocs1 + assocs2, facets