code: def test_weighted_majority_voting_single_sample():
      query = np.array([1, -1])
      clf_1 = create_base_classifier(return_value=1)
      clf_2 = create_base_classifier(return_value=1)
      clf_3 = create_base_classifier(return_value=2)
      ensemble_classifiers = [clf_2, clf_1, clf_3]
      weights = np.atleast_2d([0.2, 0.5, 1.0])
      predicted = weighted_majority_voting(
          ensemble_classifiers, weights, query
      )
      assert predicted == 2 and predicted.size == 1
  
imports: import pytest
  from deslib.util.aggregation import *
  from ..conftest import create_base_classifier
label_desc: Use image node_id 4 for calling a global function with example usage: test_weighted_majority_voting_single_sample() without return types