code: def test_insert_with_no_default_value(monkeypatch):
      """Try to insert a single trial by omitting a namespace with no default value"""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      monkeypatch.setattr("getpass.getuser", get_user_corneau)
  
      with pytest.raises(ValueError) as exc_info:
          orion.core.cli.main(
              [
                  "insert",
                  "-n",
                  "test_insert_missing_default_value",
                  "-c",
                  "./orion_config_random.yaml",
                  "./black_box.py",
              ]
          )
  
      assert (
          "Dimension /x is unspecified and has no default value"
          in str(exc_info.value)
      )
  
file_path: orion/tests/functional/commands/test_insert_command.py
imports: import os
  import pytest
  import orion.core.cli
label_desc: Use image node_id 5 for calling a global function with example usage: test_insert_with_no_default_value(monkeypatch) without return types