code: func (_m *Scheduler) MaxIdleNode(nodes []*types.Node) (*types.Node, error) {
  	ret := _m.Called(nodes)
  
  	var r0 *types.Node
  	if rf, ok := ret.Get(0).(func([]*types.Node) *types.Node); ok {
  		r0 = rf(nodes)
  	} else {
  		if ret.Get(0) != nil {
  			r0 = ret.Get(0).(*types.Node)
  		}
  	}
  
  	var r1 error
  	if rf, ok := ret.Get(1).(func([]*types.Node) error); ok {
  		r1 = rf(nodes)
  	} else {
  		r1 = ret.Error(1)
  	}
  
  	return r0, r1
  }
docs: // MaxIdleNode provides a mock function with given fields: nodes