def CheckPrerequisites():
  """Verifies that the required input files are present."""
  try:
    # Peeking into the tar file is slow. If running in stages, it's
    # reasonable to do this only once and assume that the contents of the
    # tar file will not change between stages.
    _CheckTarFile(FLAGS.runspec_config,
                  examine_members=stages.PROVISION in FLAGS.run_stage)
  except data.ResourceNotFound:
    _CheckIsoAndCfgFile(FLAGS.runspec_config)
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/speccpu2006_benchmark.py/CheckPrerequisites/original