<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def do_related(parser, token):
 """ Get N related models into a context variable optionally specifying a named related finder. **Usage**:: **Parameters**:: ================================== ================================================ Option Description ================================== ================================================ ``limit`` Number of objects to retrieve. ``query_type`` Named finder to resolve the related objects, falls back to ``settings.DEFAULT_RELATED_FINDER`` when not specified. ``object`` Object to get the related for. ``result`` Store the resulting list in context under given name. ================================== ================================================ **Examples**:: {% related 10 for object as related_list %} {% related 10 directly articles.article, galleries.gallery for object as related_list %} """

    bits = token.split_contents()
    obj_var, count, var_name, mods, finder = parse_related_tag(bits)
    return RelatedNode(obj_var, count, var_name, mods, finder)