class_docstr: Legacy protocol, store all experiments and trials inside the Database()
  
  Parameters
  ----------
  config: Dict
      configuration definition passed from experiment_builder
      to storage factory to legacy constructor.
      See `~orion.io.database.Database` for more details
  setup: bool
      Setup the database (create indexes)
class_docstr_tok: ["Legacy","protocol",",","store","all","experiments","and","trials","inside","the","Database","(",")","Parameters","--","--","--","--","--","config",":","Dict","configuration","definition","passed","from","experiment_builder","to","storage","factory","to","legacy","constructor",".","See","`","~orion.io.database.Database","`","for","more","details","setup",":","bool","Setup","the","database","(","create","indexes",")"]
docstr: Do nothing for the legacy backend.
  
  Trial object should already have its results at this point.
  
  Parameters
  ----------
  trial: Trial
      The trial object to be updated
  
  Returns
  -------
  returns the trial object
  
  Notes
  -----
  This does not update the database!
docstr_tok: ["Do","nothing","for","the","legacy","backend",".","Trial","object","should","already","have","its","results","at","this","point",".","Parameters","--","--","--","--","--","trial",":","Trial","The","trial","object","to","be","updated","Returns","--","--","--","-","returns","the","trial","object","Notes","--","--","-","This","does","not","update","the","database","!"]
code: def retrieve_result(self, trial, **kwargs):
      """Do nothing for the legacy backend.
  
      Trial object should already have its results at this point.
  
      Parameters
      ----------
      trial: Trial
          The trial object to be updated
  
      Returns
      -------
      returns the trial object
  
      Notes
      -----
      This does not update the database!
  
      """
      return trial
  
imports: import contextlib
  import datetime
  import logging
  import pickle
  import time
  import orion.core
  import orion.core.utils.backward
  from orion.core.io.database import Database, OutdatedDatabaseError, database_factory
  from orion.core.worker.trial import Trial, validate_status
  from orion.storage.base import BaseStorageProtocol, FailedUpdate, LockAcquisitionTimeout, LockedAlgorithmState, get_trial_uid_and_exp, get_uid
label_desc: Use image node_id 14 for calling the Legacy obj's underlying member method code with example usage: obj.retrieve_result(trial) and returns: trial