def get_annotation(self, key, result_format='<STR_LIT:list>'):
value = self.get('<STR_LIT>', {}).get(key)<EOL>if not value:<EOL><INDENT>return value<EOL><DEDENT>if result_format == '<STR_LIT>':<EOL><INDENT>return value[<NUM_LIT:0>]<EOL><DEDENT>return value<EOL>
Is a convenience method for accessing annotations on models that have them