def _find_used(activity, predicate):

    for resource in activity['used']:
        if predicate(resource):
            return resource
    return None
Finds a particular used resource in an activity that matches a predicate.
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/_find_used