code: def test_demo_precision(storage, monkeypatch):
      """Test a simple usage scenario."""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
  
      user_args = ["-x~uniform(-50, 50, precision=5)"]
  
      orion.core.cli.main(
          [
              "hunt",
              "--config",
              "./orion_config.yaml",
              "--max-trials",
              "2",
              "./black_box.py",
          ]
          + user_args
      )
  
      exp = list(storage.fetch_experiments({"name": "voila_voici"}))
      exp = exp[0]
      exp_id = exp["_id"]
      trials = list(storage.fetch_trials(uid=exp_id))
      trials = list(sorted(trials, key=lambda trial: trial.submit_time))
      params = trials[-1].params
      value = params["/x"]
  
      assert value == float(
          numpy.format_float_scientific(value, precision=4)
      )
  
imports: import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from collections import defaultdict
  from contextlib import contextmanager
  import numpy
  import pytest
  import yaml
  import orion.core.cli
  import orion.core.io.experiment_builder
  from orion.core.cli.hunt import workon
  from orion.testing import OrionState
label_desc: Use image node_id 22 for calling a global function with example usage: test_demo_precision(storage, monkeypatch) without return types