def do_related_objects(parser, token):
    bits = token.contents.split()
    if len(bits) != 7:
        raise TemplateSyntaxError('%s tag requires exactly five arguments' % bits[0])
    if bits[1] != 'for':
        raise TemplateSyntaxError("first argument to %s tag must be 'for'" % bits[0])
    if bits[3] != 'as':
        raise TemplateSyntaxError("third argument to %s tag must be 'as'" % bits[0])
    if bits[5] != 'limit':
        raise TemplateSyntaxError("third argument to %s tag must be 'limit'" % bits[0])
    return RelatedObjectsNode(bits[2], bits[4], bits[6])
Retrieves a list of related objects for a given object
dataset/ETHPy150Open hzlf/openbroadcast/website/tagging_ng/templatetags/tagging_tags.py/do_related_objects