'Return SubredditUserRelations for the user and subreddits.
The SubredditUserRelation objects indicate whether the user is a
moderator, contributor, subscriber, banned, or muted. This method
batches the lookups of all the relations for all the subreddits.'

@classmethod
def get_sr_user_relations(cls, user, srs):

    moderator_srids = set()
    contributor_srids = set()
    banned_srids = set()
    muted_srids = set()
    subscriber_srids = cls.user_subreddits(user, limit=None)
    if (user and c.user_is_loggedin):
        res = SRMember._fast_query(thing1s=srs, thing2s=user, name=['moderator', 'contributor', 'banned', 'muted'])
        rels = [rel for rel in res.itervalues() if rel]
        for rel in rels:
            rel_name = rel._name
            sr_id = rel._thing1_id
            if (rel_name == 'moderator'):
                moderator_srids.add(sr_id)
            elif (rel_name == 'contributor'):
                contributor_srids.add(sr_id)
            elif (rel_name == 'banned'):
                banned_srids.add(sr_id)
            elif (rel_name == 'muted'):
                muted_srids.add(sr_id)
    ret = {}
    for sr in srs:
        sr_id = sr._id
        ret[sr_id] = SubredditUserRelations(subscriber=(sr_id in subscriber_srids), moderator=(sr_id in moderator_srids), contributor=(sr_id in contributor_srids), banned=(sr_id in banned_srids), muted=(sr_id in muted_srids))
    return ret
