code: def send_batches(self, batch_list):
          
          if isinstance(batch_list, BaseMessage):
              batch_list = batch_list.SerializeToString()
  
          return self._post('/batches', batch_list)
docs: Sends a list of batches to the validator.
  
          Args:
              batch_list (:obj:`BatchList`): the list of batches
  
          Returns:
              dict: the json result data, as a dict