code: def test_score_single_label(
      self, weak_labels, tie_break_policy, expected
  ):
      mj = MajorityVoter(weak_labels)
  
      probabilities = np.array(
          [[0.5, 0.5, 0.0], [0.5, 0.0, 0.5], [1.0 / 3, 0.0, 2.0 / 3]]
      )
  
      if tie_break_policy is TieBreakPolicy.TRUE_RANDOM:
          with pytest.raises(
              NotImplementedError,
              match="not implemented for MajorityVoter",
          ):
              mj._score_single_label(probabilities, tie_break_policy)
          return
  
      annotation, prediction = mj._score_single_label(
          probabilities=probabilities, tie_break_policy=tie_break_policy
      )
      assert np.allclose(annotation, expected[0])
      assert np.allclose(prediction, expected[1])
  
imports: import sys
  import numpy
  import pytest
  from argilla.client.models import TextClassificationRecord
  from argilla.labeling.text_classification import FlyingSquid, Snorkel, WeakLabels, WeakMultiLabels
  from argilla.labeling.text_classification.label_models import LabelModel, MajorityVoter, MissingAnnotationError, NotFittedError, TieBreakPolicy, TooFewRulesError
label_desc: Use image node_id 10 for calling the TestMajorityVoter obj's underlying member method code with example usage: obj.test_score_single_label(weak_labels, tie_break_policy, expected) without return types