async function assertHighEntropyVersion(version) {
  const platformVersion = userAgentPlatform.version;
  assertEquals(
      version, (await platformVersion.load()).toVersionStringForLogging());
  assertEquals(
      version, platformVersion.getIfLoaded()?.toVersionStringForLogging());
}
Asserts that userAgentPlatform.version correctly matches the given version.
@param {string=} version