code: def member_del(self, member_id, reconfig=True):
          
          server_id = self._servers.host_to_server_id(
              self.member_id_to_host(member_id))
          if reconfig and member_id in [member['_id'] for member in self.members()]:
              config = self.config
              config['members'].pop(member_id)
              self.repl_update(config)
          self._servers.remove(server_id)
          return True
docs: remove member from replica set
          Args:
              member_id - member index
              reconfig - is need reconfig replica
  
          return True if operation success otherwise False