code: def test_label_encoder(create_label_encoder_test):
      X, y, pool = create_label_encoder_test
      sb = SingleBest(pool).fit(X, y)
      pred = sb.predict(X)
      assert np.array_equal(pred, y)
  
file_path: DESlib/deslib/tests/static/test_single_best.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.ensemble import AdaBoostClassifier
  from sklearn.exceptions import NotFittedError
  from sklearn.metrics import roc_auc_score
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.static.single_best import SingleBest
label_desc: Use image node_id 7 for calling a global function with example usage: test_label_encoder(create_label_encoder_test) without return types