code: def test_init_require_experiment():
      """Tests that a `PlotAccessor` requires an instance of `ExperimentClient`"""
      with pytest.raises(ValueError) as exception:
          PlotAccessor(None)
  
      assert "Parameter 'experiment' is None" in str(exception.value)
  
file_path: orion/tests/unittests/plotting/test_plot_accessor.py
imports: import pytest
  from orion.core.worker.experiment import Experiment
  from orion.plotting.base import PlotAccessor
  from orion.testing import create_experiment
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_require_experiment() without return types