def commit(self, body):
conn = self.get_conn()<EOL>resp = (conn<EOL>.projects()<EOL>.commit(projectId=self.project_id, body=body)<EOL>.execute(num_retries=self.num_retries))<EOL>return resp<EOL>
Commit a transaction, optionally creating, deleting or modifying some entities.

.. seealso::
    https://cloud.google.com/datastore/docs/reference/rest/v1/projects/commit

:param body: the body of the commit request.
:type body: dict
:return: the response body of the commit request.
:rtype: dict