code: def test_write_batch(self):
      with self._client.no_transact_batch() as batch:
          batch.put(self._entity1)
          batch.put(self._entity2)
      assertCountEqual(
          self, [self._key1, self._key2], self._client.entities.keys()
      )
      self.assertEqual(
          self._key1, self._client.entities[self._key1].key
      )
      self.assertDictEqual(
          {"k1": "v1"}, dict(self._client.entities[self._key1])
      )
      self.assertEqual(
          self._key2, self._client.entities[self._key2].key
      )
      self.assertDictEqual(
          {"k2": "v2", "k3": "v3"},
          dict(self._client.entities[self._key2]),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  from io import BytesIO
  import unittest
  from eval_lib.tests import fake_cloud_client
  from six import assertCountEqual
  from six import b
label_desc: Use image node_id 6 for calling the FakeDatastoreClientTest obj's underlying member method code with example usage: obj.test_write_batch() without return types