code: def test_demo_with_nondefault_config_keyword(storage, monkeypatch):
      """Check that the user script configuration file is correctly used with a new keyword."""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      orion.core.config.worker.user_script_config = "configuration"
      orion.core.cli.main(
          [
              "hunt",
              "--config",
              "./orion_config_other.yaml",
              "./black_box_w_config_other.py",
              "--configuration",
              "script_config.yaml",
          ]
      )
  
      exp = list(storage.fetch_experiments({"name": "voila_voici"}))
      assert len(exp) == 1
      exp = exp[0]
      assert "_id" in exp
      exp_id = exp["_id"]
      assert exp["name"] == "voila_voici"
      assert exp["max_trials"] == 20
      assert exp["algorithm"] == {
          "gradient_descent": {
              "learning_rate": 0.1,
              "dx_tolerance": 1e-5,
          }
      }
      assert "user" in exp["metadata"]
      assert "datetime" in exp["metadata"]
      assert "orion_version" in exp["metadata"]
      assert "user_script" in exp["metadata"]
      assert exp["metadata"]["user_args"] == [
          "./black_box_w_config_other.py",
          "--configuration",
          "script_config.yaml",
      ]
  
      trials = list(storage.fetch_trials(uid=exp_id))
      assert len(trials) <= 15
      assert trials[-1].status == "completed"
      trials = list(sorted(trials, key=lambda trial: trial.submit_time))
      for result in trials[-1].results:
          assert result.type != "constraint"
          if result.type == "objective":
              assert abs(result.value - 23.4) < 1e-6
              assert result.name == "example_objective"
          elif result.type == "gradient":
              res = numpy.asarray(result.value)
              assert 0.1 * numpy.sqrt(res.dot(res)) < 1e-4
              assert result.name == "example_gradient"
      params = trials[-1].params
      assert len(params) == 1
      px = params["/x"]
      assert isinstance(px, float)
      assert (px - 34.56789) < 1e-4
  
      orion.core.config.worker.user_script_config = "config"
  
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 21 for calling a global function with example usage: test_demo_with_nondefault_config_keyword(storage, monkeypatch) without return types