code: func (_m *Balancer) IsLeader() bool {
  	ret := _m.Called()
  
  	var r0 bool
  	if rf, ok := ret.Get(0).(func() bool); ok {
  		r0 = rf()
  	} else {
  		r0 = ret.Get(0).(bool)
  	}
  
  	return r0
  }
docs: // IsLeader provides a mock function with given fields: