code: def create_base_classifier(return_value, return_prob=None):
      classifier = MagicMock()
      classifier.predict.return_value = return_value
      classifier.predict_proba.return_value = return_prob
      return classifier
  
file_path: DESlib/deslib/tests/conftest.py
imports: import pytest
  import numpy
  from unittest.mock import MagicMock
  from sklearn.tree import DecisionTreeClassifier
label_desc: Use image node_id 5 for calling a global function with example usage: create_base_classifier(return_value, return_prob) and returns: classifier