def CheckPrerequisites():
  for resource in HBASE_CONF_FILES:
    data.ResourcePath(resource)

  hbase.CheckPrerequisites()
  ycsb.CheckPrerequisites()

  for scope in REQUIRED_SCOPES:
    if scope not in FLAGS.gcloud_scopes:
      raise ValueError('Scope {0} required.'.format(scope))

  # TODO: extract from gcloud config if available.
  if FLAGS.google_bigtable_cluster_name:
    cluster = _GetClusterDescription(FLAGS.project or _GetDefaultProject(),
                                     FLAGS.google_bigtable_zone_name,
                                     FLAGS.google_bigtable_cluster_name)
    logging.info('Found cluster: %s', cluster)
  else:
    logging.info('No cluster; will create in Prepare.')
Verifies that the required resources are present.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/cloud_bigtable_ycsb_benchmark.py/CheckPrerequisites