code: def create_base_classifier(value):
      classifier = MagicMock()
      classifier.predict.return_value = value
      classifier.predict_proba.return_value = value
  
      return classifier
  
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.des.des_knn import DESKNN
label_desc: Use image node_id 15 for calling a global function with example usage: create_base_classifier(value) and returns: classifier