code: def test_bad_transform_rejected():
      expected = "Transform must be one of ['difference', 'group_min', 'group_max', 'ratio']"
  
      with pytest.raises(ValueError) as context:
          _ = metrics.make_derived_metric(
              metric=skm.accuracy_score, transform="something rotten"
          )
      assert context.value.args[0] == expected
  
file_path: fairlearn/test/unit/metrics/test_make_derived_metric.py
imports: import functools
  import numpy
  import pytest
  import sklearn.metrics
  import fairlearn.metrics
label_desc: Use image node_id 15 for calling a global function with example usage: test_bad_transform_rejected() without return types