code: def test_insert_invalid_experiment(storage, monkeypatch, capsys):
      """Test the insertion of an invalid experiment"""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      monkeypatch.setattr("getpass.getuser", get_user_corneau)
  
      returncode = orion.core.cli.main(
          [
              "insert",
              "-n",
              "dumb_experiment",
              "-c",
              "./orion_config_random.yaml",
              "./black_box.py",
              "-x=1",
          ]
      )
  
      assert returncode == 1
  
      captured = capsys.readouterr().err
  
      assert "Error: No experiment with given name 'dumb_experiment'"
  
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 2 for calling a global function with example usage: test_insert_invalid_experiment(storage, monkeypatch, capsys) without return types