function equalArguments(goldenArgumentIds, lhlMessage) {
  const parsedMessageElements = MessageParser.parse(escapeIcuMessage(lhlMessage), {
    ignoreTag: true,
  });
  const lhlArgumentElements = collectAllCustomElementsFromICU(parsedMessageElements);
  const lhlArgumentIds = [...lhlArgumentElements.keys()];

  if (goldenArgumentIds.length !== lhlArgumentIds.length) return false;

  lhlArgumentIds.sort();
  for (let i = 0; i < goldenArgumentIds.length; i++) {
    if (goldenArgumentIds[i] !== lhlArgumentIds[i]) {
      return false;
    }
  }

  return true;
}
Returns whether the string `lhlMessage` has ICU arguments matching the
already extracted `goldenArgumentIds`. Assumes `goldenArgumentIds` is sorted.
@param {Array<string>} goldenArgumentIds
@param {string} lhlMessage
@return {boolean}