code: def test_orion_runs_script(monkeypatch):
      """Verifies Oríon can execute the example script."""
      script = os.path.abspath("examples/scikitlearn-iris/main.py")
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      config = "orion_config.yaml"
  
      orion.core.cli.main(
          [
              "hunt",
              "--config",
              config,
              "python",
              script,
              "orion~choices([0.1])",
          ]
      )
  
      experiment = create_experiment(name="scikit-iris-tutorial")
      assert experiment is not None
      assert experiment.version == 1
  
      keys = experiment.space.keys()
      assert len(keys) == 1
      assert "/_pos_2" in keys
  
      storage = setup_storage()
      trials = storage.fetch_trials(uid=experiment.id)
      assert len(trials) == 1
  
      trial = trials[0]
      assert trial.status == "completed"
      assert trial.params["/_pos_2"] == 0.1
  
file_path: orion/tests/functional/example/test_scikit_learn.py
imports: import os
  import subprocess
  import pytest
  import orion.core.cli
  from orion.client import create_experiment
  from orion.storage.base import setup_storage
label_desc: Use image node_id 2 for calling a global function with example usage: test_orion_runs_script(monkeypatch) without return types