def _maybe_update_attributes(self, attrs):
freq = attrs.get('<STR_LIT>', None)<EOL>if freq is not None:<EOL><INDENT>attrs['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>return attrs<EOL>
Update Index attributes (e.g. freq) depending on op