code: def test_results_path_setter_type_error(env_fixture_0):
      with pytest.raises(
          TypeError, match="results_path must be None or str, not .*"
      ):
          env_fixture_0.results_path = (
              lambda _: "`results_path` can't be a callable, dummy"
          )
  
imports: from hyperparameter_hunter.callbacks.recipes import confusion_matrix_oof, confusion_matrix_holdout
  from hyperparameter_hunter.environment import Environment, define_holdout_set, validate_file_blacklist
  import numpy
  import pandas
  from pkg_resources import get_distribution
  import pytest
  from sklearn.datasets import load_breast_cancer
  from sklearn.metrics import accuracy_score
  from sklearn.model_selection import RepeatedStratifiedKFold
label_desc: Use image node_id 8 for calling a global function with example usage: test_results_path_setter_type_error(env_fixture_0) without return types