def METHOD_NAME(scratch_dir):
  """Returns a SpecInstallConfigurations() for SPEC CPU 2017.
  Args:
    scratch_dir: The scratch directory on the VM that SPEC is installed on.
  """
  install_config = speccpu.SpecInstallConfigurations()
  install_config.package_name = _PACKAGE_NAME
  install_config.base_mount_dir = _MOUNT_DIR
  install_config.base_spec_dir = _SPECCPU2017_DIR
  install_config.base_tar_file_path = (FLAGS.runspec_tar or _SPECCPU2017_TAR)
  install_config.base_iso_file_path = _SPECCPU2017_ISO
  install_config.base_clang_flag_file_path = _DEFAULT_CLANG_FLAG
  install_config.required_members = _TAR_REQUIRED_MEMBERS
  install_config.log_format = _LOG_FORMAT
  install_config.runspec_config = (FLAGS.runspec_config or
                                   _DEFAULT_RUNSPEC_CONFIG)
  install_config.UpdateConfig(scratch_dir)
  return install_config