class_docstr: Fake for CompetitionDatastoreClient.
class_docstr_tok: ["Fake","for","CompetitionDatastoreClient","."]
docstr: Queries datastore.
docstr_tok: ["Queries","datastore","."]
code: def query_fetch(self, **kwargs):
      """Queries datastore."""
      kind = kwargs.get("kind", None)
      ancestor = kwargs.get("ancestor", None)
      filters = kwargs.get("filters", [])
      if ancestor and not isinstance(ancestor, FakeDatastoreKey):
          raise ValueError(
              "Invalid ancestor type: " + str(type(ancestor))
          )
      if (
          ("projection" in kwargs)
          or ("order" in kwargs)
          or ("distinct_on" in kwargs)
      ):
          raise ValueError(
              "Unsupported clause in arguments: " + str(kwargs)
          )
      for f in filters:
          if not isinstance(f, tuple) or len(f) != 3:
              raise ValueError("Invalid filter: " + str(filters))
          if f[1] not in _QUERY_FILTER_OPERATOR.keys():
              raise ValueError(
                  "Unsupported operator in filters: " + str(filters)
              )
      for e in self._entities.values():
          key_tuple = e.key.flat_path
          if (kind is not None) and (key_tuple[-2] != kind):
              continue
          if (ancestor is not None) and (
              key_tuple[:-2] != ancestor.flat_path
          ):
              continue
          all_filters_true = True
          for f in filters:
              if f[0] not in e:
                  all_filters_true = False
                  break
              if not _QUERY_FILTER_OPERATOR[f[1]](e[f[0]], f[2]):
                  all_filters_true = False
                  break
          if not all_filters_true:
              continue
          yield e
  
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 10 for calling the FakeDatastoreClient obj's underlying member method code with example usage: obj.query_fetch() without return types