code: def test_construct_s_and_psx(records):
      import numpy as np
  
      s, psx = _construct_s_and_psx(records[:2])
  
      if records[0].multi_label:
          s_expected = np.array(
              [
                  list([0]),
                  list([0, 1]),
              ],
              dtype=object,
          )
          psx_expected = np.array(
              [
                  [0.1, 0.9],
                  [0.01, 0.9],
              ]
          )
      else:
          s_expected = np.array([1, 0])
          psx_expected = np.array(
              [
                  [0.9, 0.1],
                  [0.2, 0.8],
              ]
          )
  
      assert (s == s_expected).all()
      assert (psx == psx_expected).all()
  
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 8 for calling a global function with example usage: test_construct_s_and_psx(records) without return types