def nova_not_in(logical_line):
 split_line = logical_line.split()
 if ((len(split_line) == 5) and (split_line[0] == 'if') and (split_line[1] == 'not') and (split_line[3] == 'in') and (not split_line[2].startswith('('))):
  (yield (logical_line.find('not'), "N902: Use the 'not in' operator for collection membership evaluation"))

def nova_not_in ( logical_line ) : split_line = logical_line . split ( ) if ( ( len ( split_line ) == 5 ) and ( split_line [ 0 ] == 'if' ) and ( split_line [ 1 ] == 'not' ) and ( split_line [ 3 ] == 'in' ) and ( not split_line [ 2 ] . startswith ( '(' ) ) ) : ( yield ( logical_line . find ( 'not' ) , "N902: Use the 'not in' operator for collection membership evaluation" ) )
check localization in line .