code: func getCloudProvider(cloudProvider cloudprovider.Interface) (*gcecloud.Cloud, error) {
  	var err error
  	for numRetries := 0; numRetries < maxRetries; numRetries++ {
  		gceCloudProvider, ok := cloudProvider.(*gcecloud.Cloud)
  		if !ok || gceCloudProvider == nil {
  			// Retry on error. See issue #11321
  			klog.Errorf("Failed to get GCE Cloud Provider. plugin.host.GetCloudProvider returned %v instead", cloudProvider)
  			time.Sleep(errorSleepDuration)
  			continue
  		}
  
  		return gceCloudProvider, nil
  	}
  
  	return nil, fmt.Errorf("Failed to get GCE GCECloudProvider with error %v", err)
  }
docs: // Return cloud provider