code: def test_majority_voting_multi_class():
      query = np.array([1, -1])
      ensemble_classifiers = (
          ([create_base_classifier(return_value=0)] * 10)
          + [create_base_classifier(return_value=2)] * 9
          + [create_base_classifier(return_value=1)] * 20
      )
  
      predicted = majority_voting(ensemble_classifiers, query)
      assert predicted.all() == 1 and predicted.size == 1
  
imports: import pytest
  from deslib.util.aggregation import *
  from ..conftest import create_base_classifier
label_desc: Use image node_id 2 for calling a global function with example usage: test_majority_voting_multi_class() without return types