code: def test__check_reg_targets_exception(setup):
      invalid_multioutput = "this_value_is_not_valid"
      expected_message = (
          "Allowed 'multioutput' string values are.+"
          "You provided multioutput={!r}".format(invalid_multioutput)
      )
      with pytest.raises(ValueError, match=expected_message):
          _check_reg_targets(
              [1, 2, 3], [[1], [2], [3]], invalid_multioutput
          )
  
      with pytest.raises(ValueError):
          _check_reg_targets([1, 2], [[1], [2]], multioutput=[0.4, 0.6])
      with pytest.raises(ValueError):
          _check_reg_targets(
              [[1, 2], [3, 4]], [[1, 2], [3, 4]], multioutput=[0.4]
          )
  
file_path: mars/mars/learn/metrics/tests/test_regression.py
imports: from itertools import product
  import numpy
  import pytest
  from sklearn.exceptions import UndefinedMetricWarning
  from sklearn.utils._testing import assert_almost_equal, assert_array_equal, assert_array_almost_equal
  from ....None import tensor
  from ..None import r2_score
  from .._regresssion import _check_reg_targets
label_desc: Use image node_id 2 for calling a global function with example usage: test__check_reg_targets_exception(setup) without return types