  def IsWorkloadIdentityEnabled(self) -> bool:
    """Returns whether the workload identity is enabled.

    Returns:
      bool: True if workload identity is enabled, False otherwise.
    """
    return bool(
        self._GetValue(
            'nodeConfig',
            'workloadMetadataConfig',
            'mode') == 'GKE_METADATA')
Returns whether the workload identity is enabled.

Returns:
bool: True if workload identity is enabled, False otherwise.
libcloudforensics/providers/gcp/internal/gke.py