def compute_max_min_depth(germanet_db):
gnet           = germanet.GermaNet(germanet_db)<EOL>max_min_depths = defaultdict(lambda: -<NUM_LIT:1>)<EOL>for synset in gnet.all_synsets():<EOL><INDENT>min_depth = synset.min_depth<EOL>if max_min_depths[synset.category] < min_depth:<EOL><INDENT>max_min_depths[synset.category] = min_depth<EOL><DEDENT><DEDENT>if germanet_db.metainfo.count() == <NUM_LIT:0>:<EOL><INDENT>germanet_db.metainfo.insert({})<EOL><DEDENT>metainfo = germanet_db.metainfo.find_one()<EOL>metainfo['<STR_LIT>'] = max_min_depths<EOL>germanet_db.metainfo.save(metainfo)<EOL>print('<STR_LIT>')<EOL>print(u'<STR_LIT:U+002CU+0020>'.join(u'<STR_LIT>'.format(k, v) for (k, v) in<EOL>sorted(max_min_depths.items())).encode('<STR_LIT:utf-8>'))<EOL>
For every part of speech in GermaNet, computes the maximum
min_depth in that hierarchy.

Arguments:
- `germanet_db`: a pymongo.database.Database object