class_docstr: Fake for CompetitionDatastoreClient.
class_docstr_tok: ["Fake","for","CompetitionDatastoreClient","."]
docstr: Init FakeDatastoreClient with specified entities.
docstr_tok: ["Init","FakeDatastoreClient","with","specified","entities","."]
code: def __init__(self, entities=None):
      """Init FakeDatastoreClient with specified entities."""
      self._transaction_hook = None
      if isinstance(entities, list):
          self._entities = {e.key: e for e in entities}
      elif isinstance(entities, dict):
          self._entities = entities
      elif entities is None:
          self._entities = {}
      else:
          raise ValueError(
              "Invalid type of entities: " + str(type(entities))
          )
      assert all(
          [
              isinstance(k, FakeDatastoreKey)
              for k in self._entities.keys()
          ]
      )
  
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 1 to create a new FakeDatastoreClient object from inherited base classes: object with example: obj = FakeDatastoreClient(entities)