def METHOD_NAME(vm, version: str) -> bool:
  """Returns whether Intel MPI was installed via preprovisioned data."""
  packaging = 'rpm' if vm.BASE_OS_TYPE == 'rhel' else 'deb'
  tarball = f'intel-mpi-{version}.{packaging}.tar.gz'
  # if the tarball is not in preprovisioned data return False
  if tarball not in PREPROVISIONED_DATA:
    return False
  if not vm.ShouldDownloadPreprovisionedData('intelmpi', tarball):
    return False
  vm.InstallPreprovisionedPackageData('intelmpi', [tarball], '.')
  extract_dir = posixpath.join(vm_util.VM_TMP_DIR, 'packages')
  vm.RemoteCommand(f'mkdir -p {extract_dir}; '
                   f'tar -C {extract_dir} -xvzf {tarball}; '
                   f'rm {tarball}')
  vm.InstallPackages(f'{extract_dir}/*')
  return True