class_docstr: Calls to :meth:`orion.core.io.database.AbstractDB.read`.
docstr: Fetch value(s) from an entry.
docstr_tok: ["Fetch","value","(","s",")","from","an","entry","."]
code: def test_read_trials(self, orion_db, test_collection):
      """Fetch value(s) from an entry."""
      value = orion_db.read(
          "test_collection",
          {
              "same_field": "same",
              "datetime": {"$gte": datetime(2017, 11, 23, 0, 0, 0)},
          },
      )
      assert value == test_collection[1:]
  
      value = orion_db.read(
          "test_collection",
          {
              "same_field": "same",
              "datetime": {"$gt": datetime(2017, 11, 23, 0, 0, 0)},
          },
      )
      assert value == test_collection[2:]
  
imports: import pickle
  from datetime import datetime
  import pytest
  from orion.core.io.database import Database, DatabaseError, DuplicateKeyError
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.mongodb import MongoDB
  from orion.core.io.database.pickleddb import PickledDB
  from .conftest import insert_test_collection
label_desc: Use image node_id 5 for calling the TestRead obj's underlying member method code with example usage: obj.test_read_trials(orion_db, test_collection) without return types