code: def test_label_encoder_base_ensemble():
      from sklearn.ensemble import RandomForestClassifier
  
      X, y = make_classification()
      y[y == 1] = 2
      y = y.astype(float)
      pool = RandomForestClassifier().fit(X, y)
      oracle = Oracle(pool)
      oracle.fit(X, y)
      pred = oracle.predict(X, y)
      assert np.isin(oracle.classes_, pred).all()
  
file_path: DESlib/deslib/tests/static/test_oracle.py
imports: import numpy
  from sklearn.datasets import make_classification
  from sklearn.ensemble import RandomForestClassifier
  from deslib.static.oracle import Oracle
label_desc: Use image node_id 5 for calling a global function with example usage: test_label_encoder_base_ensemble() without return types