code: def test_clone_rf2(model, preds_type, use_calibration, use_oob):
      """
      Checks that ``use_oob=True`` works when ``preds_type='probs'`` for a RandomForest model with or
      without calibration.
      """
      cd = ClassifierDriftSklearn(
          x_ref=np.random.randn(100, 5),
          model=model,
          preds_type=preds_type,
          use_calibration=use_calibration,
          use_oob=use_oob,
      )
  
      assert cd.model.oob_score
      assert cd.model.bootstrap
      assert not cd.use_calibration
  
imports: import pytest
  import numpy
  from typing import Union
  from alibi_detect.cd.sklearn.classifier import ClassifierDriftSklearn
  from sklearn.svm import SVC
  from sklearn.svm import LinearSVC
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.linear_model import LogisticRegression
  from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier, AdaBoostClassifier
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.gaussian_process import GaussianProcessClassifier
  from sklearn.neural_network import MLPClassifier
  from sklearn.naive_bayes import GaussianNB
  from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis
label_desc: Use image node_id 13 for calling a global function with example usage: test_clone_rf2(model, preds_type, use_calibration, use_oob) without return types