code: func mapToAWSInstanceIDs(nodes []*v1.Node) ([]InstanceID, error) {
  	var instanceIDs []InstanceID
  	for _, node := range nodes {
  		if node.Spec.ProviderID == "" {
  			return nil, fmt.Errorf("node %q did not have ProviderID set", node.Name)
  		}
  		instanceID, err := KubernetesInstanceID(node.Spec.ProviderID).MapToAWSInstanceID()
  		if err != nil {
  			return nil, fmt.Errorf("unable to parse ProviderID %q for node %q", node.Spec.ProviderID, node.Name)
  		}
  		instanceIDs = append(instanceIDs, instanceID)
  	}
  
  	return instanceIDs, nil
  }
docs: // mapToAWSInstanceID extracts the InstanceIDs from the Nodes, returning an error if a Node cannot be mapped