static localizeFunction(str_, fn) {
    return (...args) => this.localize(str_, fn(...args));
  }
Adapts the given DevTools function that returns a localized string to one
that returns a LH.IcuMessage.

@template {any[]} Args
@template {import('../lib/trace-engine.js').DevToolsIcuMessage} Ret
@param {ReturnType<i18n.createIcuMessageFn>} str_
@param {(...args: Args) => Ret} fn
@return {(...args: Args) => LH.IcuMessage}