code: def test_invalid_kind(capsys, single_with_trials):
      """Test that invalid kind leads to correct error message"""
      with pytest.raises(SystemExit):
          returncode = orion.core.cli.main(["plot", "blorg"])
  
      captured = capsys.readouterr().err
  
      assert (
          "argument kind: invalid choice: 'blorg' (choose from 'lpi',"
          in captured
      )
  
imports: import random
  import pytest
  import orion.core.cli
  import orion.plotting.backend_plotly
  from orion.core.cli.plot import IMAGE_TYPES, VALID_TYPES
  from orion.plotting.base import SINGLE_EXPERIMENT_PLOTS
  from orion.storage.base import setup_storage
  from orion.testing import AssertNewFile
label_desc: Use image node_id 4 for calling a global function with example usage: test_invalid_kind(capsys, single_with_trials) without return types