code: def test_multi_output_exceptions():
      # NotFittedError when fit is not done but score, predict and
      # and predict_proba are called
      moc = MultiOutputClassifier(
          LinearSVC(dual="auto", random_state=0)
      )
      with pytest.raises(NotFittedError):
          moc.score(X, y)
  
      # ValueError when number of outputs is different
      # for fit and score
      y_new = np.column_stack((y1, y2))
      moc.fit(X, y)
      with pytest.raises(ValueError):
          moc.score(X, y_new)
  
      # ValueError when y is continuous
      msg = "Unknown label type"
      with pytest.raises(ValueError, match=msg):
          moc.fit(X, X[:, 1])
  
imports: import re
  import numpy
  import pytest
  from joblib import cpu_count
  from sklearn import datasets
  from sklearn.base import ClassifierMixin, clone
  from sklearn.datasets import load_linnerud, make_classification, make_multilabel_classification, make_regression
  from sklearn.dummy import DummyClassifier, DummyRegressor
  from sklearn.ensemble import GradientBoostingRegressor, RandomForestClassifier, StackingRegressor
  from sklearn.exceptions import NotFittedError
  from sklearn.impute import SimpleImputer
  from sklearn.linear_model import Lasso, LinearRegression, LogisticRegression, OrthogonalMatchingPursuit, PassiveAggressiveClassifier, Ridge, SGDClassifier, SGDRegressor
  from sklearn.metrics import jaccard_score, mean_squared_error
  from sklearn.model_selection import GridSearchCV, train_test_split
  from sklearn.multiclass import OneVsRestClassifier
  from sklearn.multioutput import ClassifierChain, MultiOutputClassifier, MultiOutputRegressor, RegressorChain
  from sklearn.pipeline import make_pipeline
  from sklearn.svm import LinearSVC
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.utils import shuffle
  from sklearn.utils._testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from sklearn.utils.fixes import BSR_CONTAINERS, COO_CONTAINERS, CSC_CONTAINERS, CSR_CONTAINERS, DOK_CONTAINERS, LIL_CONTAINERS
label_desc: Use image node_id 18 for calling a global function with example usage: test_multi_output_exceptions() without return types