code: def test_report_with_bad_trial_no_objective(monkeypatch):
      """Test bad trial report helper function with default objective."""
      with OrionState() as cfg:
          storage = cfg.storage
  
          monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
  
          user_args = ["-x~uniform(-50, 50, precision=5)"]
  
          orion.core.cli.main(
              [
                  "hunt",
                  "--config",
                  "./orion_config.yaml",
                  "--exp-max-trials",
                  "2",
                  "--worker-trials",
                  "2",
                  "python",
                  "black_box.py",
                  "report_bad_trial",
              ]
              + user_args
          )
  
          exp = list(storage.fetch_experiments({"name": "voila_voici"}))
          exp = exp[0]
          exp_id = exp["_id"]
          trials = list(storage.fetch_trials(uid=exp_id))
          assert len(trials) == 2
          assert trials[0].status == "completed"
          assert trials[0].results[0].name == "objective"
          assert trials[0].results[0].type == "objective"
          assert trials[0].results[0].value == 1e10
  
file_path: orion/tests/functional/client/test_cli_client.py
imports: import os
  import pytest
  import orion.core.cli
  from orion.core.utils.exceptions import InvalidResult
  from orion.core.worker.consumer import Consumer
  from orion.testing import OrionState
label_desc: Use image node_id 6 for calling a global function with example usage: test_report_with_bad_trial_no_objective(monkeypatch) without return types