class_docstr: Strategy to give intermediate results for incomplete trials
class_docstr_tok: ["Strategy","to","give","intermediate","results","for","incomplete","trials"]
code: def infer(self, trial: Trial) -> Trial | None:
      fake_result = self.lie(trial)
      if fake_result is None:
          return None
  
      fake_trial = copy.deepcopy(trial)
  
      # pylint: disable=protected-access
      fake_trial._results.append(fake_result)
      return fake_trial
  
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 5 for calling the ParallelStrategy obj's underlying member method code with example usage: obj.infer(trial) and returns: fake_trial, None