class_docstr: Non permanent collection
  
  This collection is meant for debugging purposes within the EphemeralDB.
  
  .. seealso:: :class:`orion.core.io.database.ephemeraldb.EphemeralDB` for database object.
class_docstr_tok: ["Non","permanent","collection","This","collection","is","meant","for","debugging","purposes","within","the","EphemeralDB",".","..","seealso",":",":",":","class",":","`","orion.core.io.database.ephemeraldb.EphemeralDB","`","for","database","object","."]
docstr: Find documents in the collection and return a value according to the query.
  
  .. seealso:: :meth:`orion.core.io.database.Database.read` for argument documentation.
docstr_tok: ["Find","documents","in","the","collection","and","return","a","value","according","to","the","query",".","..","seealso",":",":",":","meth",":","`","orion.core.io.database.Database.read","`","for","argument","documentation","."]
code: def find(self, query=None, selection=None):
      """Find documents in the collection and return a value according to the query.
  
      .. seealso:: :meth:`orion.core.io.database.Database.read` for argument documentation.
  
      """
      found_documents = []
      for document in self._documents:
          if document.match(query):
              found_documents.append(document.select(selection))
  
      return found_documents
  
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 6 for calling the EphemeralCollection obj's underlying member method code with example usage: obj.find(query, selection) and returns: found_documents