def find_germanet_xml_files(xml_path):
xml_files = sorted(glob.glob(os.path.join(xml_path, '<STR_LIT>')))<EOL>lex_files = [xml_file for xml_file in xml_files if<EOL>re.match(r'<STR_LIT>',<EOL>os.path.basename(xml_file).lower())]<EOL>xml_files = sorted(set(xml_files) - set(lex_files))<EOL>if not lex_files:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>gn_rels_file = [xml_file for xml_file in xml_files if<EOL>os.path.basename(xml_file).lower() == '<STR_LIT>']<EOL>xml_files = sorted(set(xml_files) - set(gn_rels_file))<EOL>if not gn_rels_file:<EOL><INDENT>print('<STR_LIT>')<EOL>gn_rels_file = None<EOL><DEDENT>else:<EOL><INDENT>if <NUM_LIT:1> < len(gn_rels_file):<EOL><INDENT>print ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>gn_rels_file = gn_rels_file[<NUM_LIT:0>]<EOL><DEDENT>wiktionary_files = [xml_file for xml_file in xml_files if<EOL>re.match(r'<STR_LIT>',<EOL>os.path.basename(xml_file).lower())]<EOL>xml_files = sorted(set(xml_files) - set(wiktionary_files))<EOL>if not wiktionary_files:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>ili_files = [xml_file for xml_file in xml_files if<EOL>os.path.basename(xml_file).lower().startswith(<EOL>'<STR_LIT>')]<EOL>xml_files = sorted(set(xml_files) - set(ili_files))<EOL>if not ili_files:<EOL><INDENT>print('<STR_LIT>')<EOL><DEDENT>if xml_files:<EOL><INDENT>print('<STR_LIT>', xml_files)<EOL><DEDENT>return lex_files, gn_rels_file, wiktionary_files, ili_files<EOL>
Globs the XML files contained in the given directory and sorts
them into sections for import into the MongoDB database.

Arguments:
- `xml_path`: the path to the directory containing the GermaNet
  XML files