code: def test_debug_mode(storage, monkeypatch, tmp_path):
      """Test debug mode."""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
  
      user_args = ["-x~uniform(-50, 50, precision=5)"]
  
      with generate_config("orion_config.yaml", tmp_path) as conf_file:
          orion.core.cli.main(
              [
                  "--debug",
                  "hunt",
                  "--config",
                  f"{conf_file.name}",
                  "--max-trials",
                  "2",
                  "./black_box.py",
              ]
              + user_args
          )
  
      assert len(list(storage.fetch_experiments({}))) == 0
  
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 23 for calling a global function with example usage: test_debug_mode(storage, monkeypatch, tmp_path) without return types