code: def dataset(argilla_user: User, records):
      dataset = "dataset_for_label_errors"
  
      init(
          api_key=argilla_user.api_key, workspace=argilla_user.username
      )
  
      log(records, name=dataset)
  
      yield dataset
      delete(dataset)
  
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 10 for calling a global function with example usage: dataset(argilla_user, records) without return types