class_docstr: Fake for CompetitionDatastoreClient.
class_docstr_tok: ["Fake","for","CompetitionDatastoreClient","."]
docstr: Updates entity in the datastore.
docstr_tok: ["Updates","entity","in","the","datastore","."]
code: def put(self, entity):
      """Updates entity in the datastore."""
      assert isinstance(entity, FakeDatastoreEntity)
      entity = copy.deepcopy(entity)
      if entity.key in self.entities:
          self.entities[entity.key].update(entity)
      else:
          self.entities[entity.key] = entity
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  from io import StringIO
  import six
label_desc: Use image node_id 8 for calling the FakeDatastoreClient obj's underlying member method code with example usage: obj.put(entity) without return types