

def filter_by_association(self, target=None, target_type=None, predicate=None, direction=None, target_filter=None):
    'Establishes a filter by association to target(s) based on various criteria (predicate, target id, target type,\n        association direction) over one or multiple levels.\n        @param predicate  A predicate or list of predicate (one level) or list of (predicate/list of predicate) for multi level\n        @param target  An id (str) or list of ids of associated resources as determined by\n        @param target_type  A type (str) or list of types of associated resources\n        @param direction  Indicates the directionality of associations in one character: S=to subject (== find objects),\n                O=to object (==find subjects), A=any side (== find associated). If this expression is more than one\n                character long, it indicates to search multiple levels, e.g. "SO" -- TODO: >-<\n        @param target_filter  Filter expressions applicable to association target\n        '
    return predicate.associated_with(target=target, target_type=target_type, predicate=predicate, direction=direction, target_filter=target_filter)

dataset/ETHPy150Open ooici/pyon/pyon/ion/resregistry.py ResourceQuery.filter_by_association/VarMisuse@33/357 `self`->`predicate`