code: def test_q_statistic_ones_zeros(example_diversity_ones_zeros):
      y, y_pred_ones, y_pred_zeros = example_diversity_ones_zeros
      Q = Q_statistic(y, y_pred_ones, y_pred_zeros)
      assert (Q == np.full((5,), -1.0)).all()
  
file_path: DESlib/deslib/tests/util/test_diversity_batch.py
imports: import numpy
  import pytest
  from deslib.util.diversity_batch import _process_predictions, double_fault, Q_statistic, ratio_errors, agreement_measure, disagreement_measure, correlation_coefficient
label_desc: Use image node_id 7 for calling a global function with example usage: test_q_statistic_ones_zeros(example_diversity_ones_zeros) without return types