def get_fields_for_keyword(self, keyword, mode='<STR_LIT:a>'):
field = self.keyword_to_fields.get(keyword, keyword)<EOL>if isinstance(field, dict):<EOL><INDENT>return field[mode]<EOL><DEDENT>elif isinstance(field, (list, tuple)):<EOL><INDENT>return field<EOL><DEDENT>return [field]<EOL>
Convert keyword to fields.