@register.tag
def featured_projects(parser, token):
    try:
        tag_name, number = token.split_contents()
    except __HOLE__:
        raise template.TemplateSyntaxError("%r tag requires a single argument" % token.contents.split()[0])
    try:
        int(number)
    except ValueError:
        raise template.TemplateSyntaxError("%r tag's argument should be an integer" % tag_name)
    return FeaturedProjectNode(number)
dataset/ETHPy150Open python/raspberryio/raspberryio/project/templatetags/project_tags.py/featured_projects