code: def test_predict_proba_hybrid_soft_voting(create_pool_classifiers):
      query = np.array([[-1, 1]])
      expected = np.array([0.5744, 0.4256])
      competences = np.array([[0.55, 1.0, 0.2, 0.60, 0.75, 0.3]])
      predictions = np.array([[0, 1, 0, 0, 1, 0]])
      probabilities = np.array(
          [
              [
                  [0.5, 0.5],
                  [1.0, 0.0],
                  [0.33, 0.67],
                  [0.5, 0.5],
                  [1.0, 0.0],
                  [0.33, 0.67],
              ]
          ]
      )
      selected_indices = np.array(
          [[True, True, False, False, False, True]]
      )
      pool_classifiers = (
          create_pool_classifiers + create_pool_classifiers
      )
  
      des_test = BaseDES(pool_classifiers, mode="hybrid", voting="soft")
      des_test.n_classes_ = 2
      des_test.estimate_competence = MagicMock(return_value=competences)
      des_test.select = MagicMock(return_value=selected_indices)
      predicted_proba = des_test.predict_proba_with_ds(
          predictions, probabilities
      )
      assert np.isclose(predicted_proba, expected, atol=0.01).all()
  
file_path: DESlib/deslib/tests/des/test_base.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from deslib.des.base import BaseDES
label_desc: Use image node_id 8 for calling a global function with example usage: test_predict_proba_hybrid_soft_voting(create_pool_classifiers) without return types