def do_get_member_for(parser, token):
    try:
        # Splitting by None == splitting by spaces.
        tag_name, arg = token.contents.split(None, 1)
    except __HOLE__:
        raise template.TemplateSyntaxError, "%r tag requires arguments" % token.contents.split()[0]
    m = re.search(r'(\w+) as (\w+)', arg)
    if not m:
        raise template.TemplateSyntaxError, "%r tag had invalid arguments" % tag_name
    object_var_name, return_var_name = m.groups()
    return GetMemberFor(object_var_name, return_var_name)
dataset/ETHPy150Open ofri/Open-Knesset/mks/templatetags/mks_tags.py/do_get_member_for