code: func (le *LeaderElector) IsLeader() bool {
  	return le.observedRecord.HolderIdentity == le.config.Lock.Identity()
  }
docs: // IsLeader returns true if the last observed leader was this client else returns false.