code: def checkInstances(self) -> None:
          # TODO: Is this method really needed?
          
          logger.debug("{} choosing to start election on the basis of count {} and nodes {}".
                       format(self, self.connectedNodeCount, self.nodestack.conns))
docs: Check if this node has the minimum required number of protocol
          instances, i.e. f+1. If not, add a replica. If no election is in
          progress, this node will try to nominate one of its replicas as primary.
          This method is called whenever a connection with a  new node is
          established.