class_docstr: Wrapper that makes the algo "multi-task" by adding a task id to the inputs.
class_docstr_tok: ["Wrapper","that","makes","the","algo","``","multi-task","''","by","adding","a","task","id","to","the","inputs","."]
docstr: Used to check if a trial is compatible with the current experiment and can be reused.
  
  The trial will have a different task ID than the current task.
  
  NOTE: this assumes that the trial from the other experiment comes from the knowledge base,
  and that it therefore doesn't already have a task ID.
docstr_tok: ["Used","to","check","if","a","trial","is","compatible","with","the","current","experiment","and","can","be","reused",".","The","trial","will","have","a","different","task","ID","than","the","current","task",".","NOTE",":","this","assumes","that","the","trial","from","the","other","experiment","comes","from","the","knowledge","base",",","and","that","it","therefore","does","n't","already","have","a","task","ID","."]
code: def _is_compatible(self, trial_from_other_experiment: Trial) -> bool:
      """Used to check if a trial is compatible with the current experiment and can be reused.
  
      The trial will have a different task ID than the current task.
  
      NOTE: this assumes that the trial from the other experiment comes from the knowledge base,
      and that it therefore doesn't already have a task ID.
      """
      return trial_from_other_experiment in self.space
  
imports: from __future__ import annotations
  import copy
  from collections import defaultdict
  from contextlib import contextmanager
  from logging import getLogger
  from orion.algo.space import Categorical, Space
  from orion.core.utils.format_trials import dict_to_trial
  from orion.core.worker.algo_wrappers.algo_wrapper import AlgoT
  from orion.core.worker.algo_wrappers.transform_wrapper import TransformWrapper, _copy_status_and_results
  from orion.core.worker.experiment_config import ExperimentConfig
  from orion.core.worker.trial import Trial
  from orion.core.worker.warm_start.knowledge_base import KnowledgeBase
  from orion.core.worker.warm_start.warm_starteable import WarmStarteable
label_desc: Use image node_id 5 for calling the MultiTaskWrapper obj's underlying member method code with example usage: obj._is_compatible(trial_from_other_experiment) and returns: unknown