code: def _get_gcloud_sdk_credentials():
      
      from google.auth import _cloud_sdk
  
      # Check if application default credentials exist.
      credentials_filename = (
          _cloud_sdk.get_application_default_credentials_path())
  
      if not os.path.isfile(credentials_filename):
          return None, None
  
      credentials, project_id = _load_credentials_from_file(
          credentials_filename)
  
      if not project_id:
          project_id = _cloud_sdk.get_project_id()
  
      return credentials, project_id
docs: Gets the credentials and project ID from the Cloud SDK.