def get_association(id, **kwargs):
    """
    Fetch an association object by ID
    """
    results = search_associations(id=id, **kwargs)
    assoc = results['associations'][0] if len(results['associations']) > 0 else {}
    return assoc
def get_association ( id , ** kwargs ) : results = search_associations ( id = id , ** kwargs ) assoc = results [ 'associations' ] [ 0 ] if len ( results [ 'associations' ] ) > 0 else { } return assoc
Fetch an association object by ID