def METHOD_NAME(test_summary):
  if not test_summary:
    logging.error("Nothing to be validate! Please provide test_summary")
    return False
  app_path = test_summary.get("testapp_path")
  return_code = test_summary.get("return_code")
  logging.info("testapp: %s\nreturn code: %s" % (app_path, return_code))
  if return_code == 0:
    gcs_dir = test_summary.get("raw_result_link").replace("https://console.developers.google.com/storage/browser/", "gs://")
    logging.info("gcs_dir: %s" % gcs_dir)
    logs = _get_testapp_log_text_from_gcs(gcs_dir)
    logging.info("Test result: %s", logs)
    return _validate_logs(logs)
  else:
    logging.error("Test failed: %s", app_path)
    return False