code: def check_zero_shot_results(
      predictions,
      zero_shot_classifier,
      dataset: str,
      text: Union[str, List[str]],
      labels: List[str],
      hypothesis: str,
      multi_label: bool = False,
  ):
      assert predictions == zero_shot_classifier(
          text,
          candidate_labels=labels,
          hypothesis_template=hypothesis,
          multi_label=multi_label,
      )
  
      if isinstance(text, list):
          text = text[0]
      try:
          predictions = predictions[0]
      except KeyError:
          pass
  
      sleep(1)  # wait for the consumer time
      ds = argilla.load(dataset)
      df = ds.to_pandas()
      assert len(df) == 1
      record = TextClassificationRecord.parse_obj(
          df.to_dict(orient="records")[0]
      )
      assert record.inputs["text"] == text
      assert record.metadata == {
          "labels": labels,
          "hypothesis_template": hypothesis,
      }
      assert (
          record.prediction_agent
          == zero_shot_classifier.model.config.name_or_path
      )
      assert record.prediction == [
          (label, score)
          for label, score in zip(
              predictions["labels"], predictions["scores"]
          )
      ]
  
imports: from time import sleep
  from typing import List, Union
  import argilla
  import pytest
  from argilla.client.models import TextClassificationRecord
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 12 for calling a global function with example usage: check_zero_shot_results(predictions, zero_shot_classifier, dataset, text, labels, hypothesis, multi_label) without return types