code: def gcloud_auth_credentials() -> Optional[Credentials]:
      """Attempt to generate credentials from the oauth2 workflow triggered by
      `gcloud auth login`. Returns
  
      """
      token = auth_access_token()
      if token:
          return Credentials(token)
  
imports: from subprocess import CalledProcessError, check_output
  from typing import Optional
  from google.oauth2 import service_account
  from google.oauth2.credentials import Credentials
label_desc: Use image node_id 2 for calling a global function with example usage: gcloud_auth_credentials() and returns: Credentials