def METHOD_NAME(project):
  """Get the App Engine region."""
  return_code, location = common.execute(
      'gcloud app describe --project={project} '
      '--format="value(locationId)"'.format(project=project))
  if return_code:
    raise RuntimeError('Could not get App Engine region')
  return region_from_location(location.strip().decode('utf-8'))