code: def test_init_w_version_from_exp_wout_child(orionstate, monkeypatch):
      """Test that init of experiment from version without child works."""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      execute(
          "hunt --init-only -n experiment --config orion_config.yaml "
          "--enable-evc "
          "./black_box.py -x~normal(0,1)"
      )
      execute(
          "hunt --init-only -n experiment "
          "--enable-evc "
          "./black_box.py -x~normal(0,1) -y~+normal(0,1)"
      )
      execute(
          "hunt --init-only -n experiment -v 2 "
          "--enable-evc "
          "./black_box.py "
          "-x~normal(0,1) -y~+normal(0,1) -z~+normal(0,1)"
      )
  
      exp = setup_storage().fetch_experiments(
          {"name": "experiment", "version": 3}
      )
      assert len(list(exp))
  
imports: import logging
  import os
  import pytest
  import yaml
  import orion.core.cli
  import orion.core.io.experiment_builder
  from orion.storage.base import setup_storage
label_desc: Use image node_id 51 for calling a global function with example usage: test_init_w_version_from_exp_wout_child(orionstate, monkeypatch) without return types