code: function sanityCheckModules(modelInfoMap) {
    if (Object.keys(modelInfoMap).some((key) => !modelInfoMap[key].MODELS_INFO || (modelInfoMap[key].MODELS_INFO !== MODELS_INFO))) {
      const error = [];
      error.push('Multiple versions of shr-models were detected');
      error.push('shr-models: ' + JSON.stringify(MODELS_INFO, null, 2));
      for (const modName in modelInfoMap) {
        error.push(`${modName}: ${JSON.stringify(modelInfoMap[modName].MODELS_INFO, null, 2)}`);
      }
  
      throw new Error(error.join('\n'));
    }
  }
docs: A sanity check of modules to ensure that they are all using the same version of shr-models. The selected modules
  must re-export shr-models' {@linkcode MODELS_INFO} object.
  <pre>
  An invocation would typically look like this:
  const { sanityCheckModules } = require('shr-models');
  const shrTI = require('shr-text-import');
  const shrEx = require('shr-expand');
  ...
  sanityCheckModules({shrTI, shrEx })
  </pre>
  
  @param {Object.<string, Object>} modelInfoMap - A mapping of module names to the modules that import shr-models.
  @throws {Error} if there is an inconsistency in the provided modules.