code: func InvalidNode(n *api.Node) bool {
  	return n == nil ||
  		n.Status.State == api.NodeStatus_DOWN ||
  		n.Spec.Availability == api.NodeAvailabilityDrain
  }
docs: // InvalidNode is true if the node is nil, down, or drained