class_docstr: Non permanent document
  
  This document is meant for debugging purposes within the EphemeralDB.
  
  .. seealso:: :class:`orion.core.io.database.ephemeraldb.EphemeralDB` for database object.
class_docstr_tok: ["Non","permanent","document","This","document","is","meant","for","debugging","purposes","within","the","EphemeralDB",".","..","seealso",":",":",":","class",":","`","orion.core.io.database.ephemeraldb.EphemeralDB","`","for","database","object","."]
docstr: Test if the document corresponds to a given query
docstr_tok: ["Test","if","the","document","corresponds","to","a","given","query"]
code: def match(self, query=None):
      """Test if the document corresponds to a given query"""
      if query is None or query == {}:
          return True
  
      query = flatten(query)
      for key, value in query.items():
          if not self.match_key(key, value):
              return False
  
      return True
  
imports: import copy
  from collections import defaultdict
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.utils.flatten import flatten, unflatten
label_desc: Use image node_id 2 for calling the EphemeralDocument obj's underlying member method code with example usage: obj.match(query) and returns: True, True, False