code: def test_token_classification_prediction_validator(
      prediction, expected
  ):
      record = TokenClassificationRecord(
          text="this", tokens=["this"], prediction=prediction
      )
      assert record.prediction == expected
  
imports: import datetime
  import json
  import uuid
  from typing import Any, Optional
  import numpy
  import pandas
  import pytest
  from argilla.client.models import Text2TextRecord, TextClassificationRecord, TokenClassificationRecord, _Validators
  from pydantic import ValidationError
label_desc: Use image node_id 8 for calling a global function with example usage: test_token_classification_prediction_validator(prediction, expected) without return types