class_docstr: Strategy to give intermediate results for incomplete trials
class_docstr_tok: ["Strategy","to","give","intermediate","results","for","incomplete","trials"]
docstr: Construct a fake result for an incomplete trial
  
  Parameters
  ----------
  trial: `orion.core.worker.trial.Trial`
      A trial object which is not supposed to be completed.
  
  Returns
  -------
  ``orion.core.worker.trial.Trial.Result``
      The fake objective result corresponding to the trial given.
  
  Notes
  -----
  If the trial has an objective even if not completed, a warning is printed to user
  with a pointer to documentation to resolve the database corruption. The result returned is
  the corresponding objective instead of the lie.
code: def lie(self, trial: Trial) -> Trial.Result | None:
      """Construct a fake result for an incomplete trial
  
      Parameters
      ----------
      trial: `orion.core.worker.trial.Trial`
          A trial object which is not supposed to be completed.
  
      Returns
      -------
      ``orion.core.worker.trial.Trial.Result``
          The fake objective result corresponding to the trial given.
  
      Notes
      -----
      If the trial has an objective even if not completed, a warning is printed to user
      with a pointer to documentation to resolve the database corruption. The result returned is
      the corresponding objective instead of the lie.
  
      """
      objective = get_objective(trial)
      if objective:
          log.warning(CORRUPTED_DB_WARNING, trial.id)
          return Trial.Result(
              name="lie", type="objective", value=objective
          )
  
      return None
  
imports: from __future__ import annotations
  import copy
  import logging
  from orion.algo.base.registry import Registry
  from orion.core.utils import GenericFactory
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 6 for calling the ParallelStrategy obj's underlying member method code with example usage: obj.lie(trial) and returns: None, Trial