def metadata(abbr, __metadata=__metadata):
<EOL>abbr = abbr.lower()<EOL>if abbr in __metadata:<EOL><INDENT>return __metadata[abbr]<EOL><DEDENT>rv = db.metadata.find_one({'<STR_LIT>': abbr})<EOL>__metadata[abbr] = rv<EOL>return rv<EOL>
Grab the metadata for the given two-letter abbreviation.