code: def test_init_optimiser():
      """Test init method of Optimiser class."""
      with pytest.warns(UserWarning) as record:
          optimiser = Optimiser()
      assert len(record) == 1
      assert not optimiser.scoring
      assert optimiser.n_folds == 2
      assert optimiser.random_state == 1
      assert optimiser.to_path == "save"
      assert optimiser.verbose
  
file_path: MLBox/tests/test_optimiser.py
imports: import pytest
  import numpy
  from mlbox.optimisation.optimiser import Optimiser
  from mlbox.preprocessing.drift_thresholder import Drift_thresholder
  from mlbox.preprocessing.reader import Reader
  from mlbox.optimisation import make_scorer
label_desc: Use image node_id 1 for calling a global function with example usage: test_init_optimiser() without return types