def get_meta(self, key=None):
if self.is_fake:<EOL><INDENT>return {}<EOL><DEDENT>if key == "<STR_LIT>":<EOL><INDENT>return self.tag<EOL><DEDENT>elif key is None:<EOL><INDENT>ret = {}<EOL>for key in self.journal.info.keys():<EOL><INDENT>ret[key] = self.meta_mappings.map_get(self.journal.info, key)[<NUM_LIT:1>]<EOL><DEDENT>return ret<EOL><DEDENT>else:<EOL><INDENT>key, value = self.meta_mappings.map_get(self.journal.info, key)<EOL>return value<EOL><DEDENT>
Get metadata value for collection.