def line_has_limit_or_skip(line):
    """check if there is a limit or skip statement"""
    if 'return' in line:
        pos = line.rindex('return')
        if 'limit' in line[pos:] or 'skip' in line[pos:]:
            return True
