class_docstr: The Sacred Mongo client allows to retrieve results from experiments tracked
  with Sacred from MongoDB.
docstr: Queries the experiments associated with the experiment set and returns
  the one matching the query.
  
  Args:
      config: The query items that apply to the configuration.
      others: Optional additional query options.
  
  Returns:
      The sacred experiment describing the experiment.
docstr_tok: ["Queries","the","experiments","associated","with","the","experiment","set","and","returns","the","one","matching","the","query",".","Args",":","config",":","The","query","items","that","apply","to","the","configuration",".","others",":","Optional","additional","query","options",".","Returns",":","The","sacred","experiment","describing","the","experiment","."]
code: def query_one(
      self,
      config: Dict[str, Any],
      others: Optional[Dict[str, Any]] = None,
  ) -> SacredExperiment:
      """
      Queries the experiments associated with the experiment set and returns
      the one matching the query.
  
      Args:
          config: The query items that apply to the configuration.
          others: Optional additional query options.
  
      Returns:
          The sacred experiment describing the experiment.
      """
      full_query = {
          **self.base_query,
          **{f"config.{k}": v for k, v in config.items()},
          **(others or {}),
      }
      assert (
          self.db.runs.count_documents(full_query) == 1
      ), "Query does not return a single experiment."
  
      info = self.db.runs.find_one(full_query)
      assert info is not None
  
      return SacredExperiment(info, self.db, self.fs)
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/analysis/tracking/client.py
imports: from typing import Any, Dict, Iterator, List, Optional, Union
  import gridfs
  import pymongo
  from .experiment import SacredExperiment
label_desc: Use image node_id 2 for calling the SacredMongoClient obj's underlying member method code with example usage: obj.query_one(config, others) and returns: SacredExperiment