def complete_tags(arg):
search_string = '<STR_LIT>'<EOL>if arg is not None:<EOL><INDENT>search_string += arg<EOL><DEDENT>res = Tag.search({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:name>',<EOL>'<STR_LIT>': search_string<EOL>})<EOL>ret = []<EOL>for t in res['<STR_LIT:result>']:<EOL><INDENT>ret.append(t.name)<EOL><DEDENT>return ret<EOL>
Complete NIPAP prefix type