code: def test_run_with_name_only_with_trailing_whitespace(
      storage, monkeypatch
  ):
      """Test hunt can be executed with experiment name and trailing whitespace"""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      orion.core.cli.main(
          [
              "hunt",
              "--init-only",
              "--config",
              "./orion_config_random.yaml",
              "./black_box.py",
              "-x~uniform(-50, 50)",
          ]
      )
  
      orion.core.cli.main(
          [
              "hunt",
              "--max-trials",
              "20",
              "--config",
              "./orion_config_random.yaml",
              "",
          ]
      )
  
      exp = list(
          storage.fetch_experiments({"name": "demo_random_search"})
      )
      assert len(exp) == 1
      exp = exp[0]
      assert "_id" in exp
      exp_id = exp["_id"]
      trials = list(storage.fetch_trials(uid=exp_id))
      assert len(trials) == 20
  
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 16 for calling a global function with example usage: test_run_with_name_only_with_trailing_whitespace(storage, monkeypatch) without return types