code: def _process_query_results(self, response_pb):
          
          self._skipped_results = response_pb.batch.skipped_results
  
          if response_pb.batch.more_results == _NO_MORE_RESULTS:
              self.next_page_token = None
          else:
              self.next_page_token = base64.urlsafe_b64encode(
                  response_pb.batch.end_cursor
              )
          self._end_cursor = None
  
          if response_pb.batch.more_results == _NOT_FINISHED:
              self._more_results = True
          elif response_pb.batch.more_results in _FINISHED:
              self._more_results = False
          else:
              raise ValueError("Unexpected value returned for `more_results`.")
  
          return [result.entity for result in response_pb.batch.entity_results]
docs: Process the response from a datastore query.
  
          :type response_pb: :class:`.datastore_pb2.RunQueryResponse`
          :param response_pb: The protobuf response from a ``runQuery`` request.
  
          :rtype: iterable
          :returns: The next page of entity results.
          :raises ValueError: If ``more_results`` is an unexpected value.