code: def test_missing_predictions():
      records = [
          TextClassificationRecord(
              text="test",
              annotation="mock",
              prediction=[("mock2", 0.1)],
          )
      ]
      with pytest.raises(
          MissingPredictionError,
          match="It seems predictions are missing for the label 'mock'",
      ):
          _construct_s_and_psx(records)
  
      records.append(
          TextClassificationRecord(
              text="test", annotation="mock", prediction=[("mock", 0.1)]
          )
      )
      with pytest.raises(
          MissingPredictionError,
          match="It seems a prediction for 'mock' is missing in the following record",
      ):
          _construct_s_and_psx(records)
  
imports: import sys
  import cleanlab
  import pytest
  from argilla import User
  from argilla.client.api import delete, load, log
  from argilla.client.models import TextClassificationRecord
  from argilla.client.singleton import init
  from argilla.labeling.text_classification import find_label_errors
  from argilla.labeling.text_classification.label_errors import MissingPredictionError, NoRecordsError, SortBy, _construct_s_and_psx
  from pkg_resources import parse_version
label_desc: Use image node_id 9 for calling a global function with example usage: test_missing_predictions() without return types