code: def test_label_encoder(create_label_encoder_test):
      X, y, pool = create_label_encoder_test
      static = StaticSelection(pool).fit(X, y)
      pred = static.predict(X)
      assert np.array_equal(pred, y)
  
imports: import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.ensemble import AdaBoostClassifier
  from sklearn.exceptions import NotFittedError
  from sklearn.metrics import log_loss
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.static.static_selection import StaticSelection
label_desc: Use image node_id 8 for calling a global function with example usage: test_label_encoder(create_label_encoder_test) without return types