code: def test_get_params_optimiser():
      """Test get_params method of optimiser class."""
      with pytest.warns(UserWarning) as record:
          optimiser = Optimiser()
      assert len(record) == 1
      dict = {
          "scoring": None,
          "n_folds": 2,
          "random_state": 1,
          "to_path": "save",
          "verbose": True,
      }
      assert optimiser.get_params() == dict
  
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 2 for calling a global function with example usage: test_get_params_optimiser() without return types