def is_loop_helper(node):
return hasattr(node, '<STR_LIT>') and isinstance(node.node, nodes.Name) and node.node.name == '<STR_LIT>'<EOL>
Returns True is node is a loop helper e.g. {{ loop.index }} or {{ loop.first }}