@hepnames.over('<STR_LIT>', '<STR_LIT>')<EOL>def new_record(self, key, value):
new_record = self.get('<STR_LIT>', {})<EOL>ids = self.get('<STR_LIT>', [])<EOL>for value in force_list(value):<EOL><INDENT>for id_ in force_list(value.get('<STR_LIT:a>')):<EOL><INDENT>ids.append({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:value>': id_,<EOL>})<EOL><DEDENT>new_recid = force_single_element(value.get('<STR_LIT:d>', '<STR_LIT>'))<EOL>if new_recid:<EOL><INDENT>new_record = get_record_ref(new_recid, '<STR_LIT>')<EOL><DEDENT><DEDENT>self['<STR_LIT>'] = ids<EOL>return new_record<EOL>
Populate the ``new_record`` key.

    Also populates the ``ids`` key through side effects.