code: func (f *ResourceFilter) Check(n *NodeInfo) bool {
  	if f.reservations.NanoCPUs > n.AvailableResources.NanoCPUs {
  		return false
  	}
  
  	if f.reservations.MemoryBytes > n.AvailableResources.MemoryBytes {
  		return false
  	}
  
  	for _, v := range f.reservations.Generic {
  		enough, err := genericresource.HasEnough(n.AvailableResources.Generic, v)
  		if err != nil || !enough {
  			return false
  		}
  	}
  
  	return true
  }
docs: // Check returns true if the task can be scheduled into the given node.