def METHOD_NAME(self, rids, resources):
    rids = [r.split("/", 3)[-1] for r in rids]
    for r in resources:
        for rid in rids:
            if rid in r["name"] or rid in r["selfLink"]:
                yield r