code: func (f *PlatformFilter) Check(n *NodeInfo) bool {
  	// if the supportedPlatforms field is empty, then either it wasn't
  	// provided or there are no constraints
  	if len(f.supportedPlatforms) == 0 {
  		return true
  	}
  	// check if the platform for the node is supported
  	if n.Description != nil {
  		if nodePlatform := n.Description.Platform; nodePlatform != nil {
  			for _, p := range f.supportedPlatforms {
  				if f.platformEqual(*p, *nodePlatform) {
  					return true
  				}
  			}
  		}
  	}
  	return false
  }
docs: // Check returns true if the task can be scheduled into the given node.