def find_sequence(fields, doing_specialization):
 for f in fields:
  if f.seq:
   if (not doing_specialization):
    return True
   if (str(f.type) not in _SPECIALIZED_SEQUENCES):
    return True
 return False

def find_sequence ( fields , doing_specialization ) : for f in fields : if f . seq : if ( not doing_specialization ) : return True if ( str ( f . type ) not in _SPECIALIZED_SEQUENCES ) : return True return False
return true if any field uses a sequence .