code: def test_output_default_kind(monkeypatch, single_with_trials, kind):
      """Test that output default is used properly and kind is called"""
  
      plotting_function = getattr(orion.plotting.backend_plotly, kind)
  
      def mock_plot(*args, **kwargs):
          mock_plot.called = True
          return plotting_function(*args, **kwargs)
  
      mock_plot.called = False
  
      monkeypatch.setattr(
          f"orion.plotting.backend_plotly.{kind}", mock_plot
      )
  
      assert (
          len(
              setup_storage().fetch_trials(
                  uid=single_with_trials["_id"]
              )
          )
          > 0
      )
  
      filename = f"test_single_exp-v1_{kind}.png"
      with AssertNewFile(filename):
          returncode = orion.core.cli.main(
              [
                  "plot",
                  kind,
                  "--name",
                  "test_single_exp",
              ]
          )
          assert returncode == 0
  
      assert mock_plot.called
  
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 11 for calling a global function with example usage: test_output_default_kind(monkeypatch, single_with_trials, kind) and returns: plotting_function