code: def disable_duplication(monkeypatch):
      def stub(self):
          pass
  
      with monkeypatch.context() as m:
          m.setattr(
              "orion.core.worker.experiment.Experiment.duplicate_pending_trials",
              stub,
          )
  
          yield
  
file_path: orion/src/orion/testing/evc.py
imports: import contextlib
  import copy
  from orion.client import build_experiment, get_experiment
  from orion.core.io.space_builder import DimensionBuilder
label_desc: Use image node_id 1 for calling a global function with example usage: disable_duplication(monkeypatch) without return types