code: def test_ovr_multilabel_dataset():
      base_clf = MultinomialNB(alpha=1)
      for au, prec, recall in zip(
          (True, False), (0.51, 0.66), (0.51, 0.80)
      ):
          X, Y = datasets.make_multilabel_classification(
              n_samples=100,
              n_features=20,
              n_classes=5,
              n_labels=2,
              length=50,
              allow_unlabeled=au,
              random_state=0,
          )
          X_train, Y_train = X[:80], Y[:80]
          X_test, Y_test = X[80:], Y[80:]
          clf = OneVsRestClassifier(base_clf).fit(X_train, Y_train)
          Y_pred = clf.predict(X_test)
  
          assert clf.multilabel_
          assert_almost_equal(
              precision_score(Y_test, Y_pred, average="micro"),
              prec,
              decimal=2,
          )
          assert_almost_equal(
              recall_score(Y_test, Y_pred, average="micro"),
              recall,
              decimal=2,
          )
  
imports: from re import escape
  import numpy
  import pytest
  import scipy.sparse
  from numpy.testing import assert_allclose
  from sklearn import datasets, svm
  from sklearn.datasets import load_breast_cancer
  from sklearn.exceptions import NotFittedError
  from sklearn.impute import SimpleImputer
  from sklearn.linear_model import ElasticNet, Lasso, LinearRegression, LogisticRegression, Perceptron, Ridge, SGDClassifier
  from sklearn.metrics import precision_score, recall_score
  from sklearn.model_selection import GridSearchCV, cross_val_score
  from sklearn.multiclass import OneVsOneClassifier, OneVsRestClassifier, OutputCodeClassifier
  from sklearn.naive_bayes import MultinomialNB
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.pipeline import Pipeline, make_pipeline
  from sklearn.svm import SVC, LinearSVC
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from sklearn.utils import check_array, shuffle
  from sklearn.utils._mocking import CheckingClassifier
  from sklearn.utils._testing import assert_almost_equal, assert_array_equal
  from sklearn.utils.fixes import COO_CONTAINERS, CSC_CONTAINERS, CSR_CONTAINERS, DOK_CONTAINERS, LIL_CONTAINERS
  from sklearn.utils.multiclass import check_classification_targets, type_of_target
label_desc: Use image node_id 13 for calling a global function with example usage: test_ovr_multilabel_dataset() without return types