code: def on_gcp():
      """Detect whether the current running environment is on GCP."""
      try:
          # Timeout in 5 seconds, in case the test environment has connectivity issue.
          # There is not default timeout, which means it might block forever.
          response = requests.get(
              GCP_METADATA_URL, headers=GCP_METADATA_HEADER, timeout=5
          )
          return response.status_code == 200
      except requests.exceptions.RequestException:
          return False
  
label_desc: Use image node_id 1 for calling a global function with example usage: on_gcp() and returns: unknown, False