code: def test_score_unknown_reduction_raises(
      self, loss_scoring_fn, net_fit, data
  ):
      X, y = data
      net_fit.set_params(criterion__reduction="unk")
      with pytest.raises(ValueError, match="for reduction but got"):
          loss_scoring_fn(net_fit, X, y)
  
imports: import pytest
  import numpy
  import torch
label_desc: Use image node_id 18 for calling the TestLossScoring obj's underlying member method code with example usage: obj.test_score_unknown_reduction_raises(loss_scoring_fn, net_fit, data) without return types