code: def test_token_classification_with_mutation():
      text_a = "The text"
      text_b = "Another text sample here !!!"
  
      record = TokenClassificationRecord(
          text=text_a, tokens=text_a.split(" "), annotation=[]
      )
      assert record.spans2iob(record.annotation) == ["O"] * len(
          text_a.split(" ")
      )
  
      with pytest.raises(
          AttributeError,
          match="You cannot assign a new value to `text`",
      ):
          record.text = text_b
      with pytest.raises(
          AttributeError,
          match="You cannot assign a new value to `tokens`",
      ):
          record.tokens = text_b.split(" ")
  
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 7 for calling a global function with example usage: test_token_classification_with_mutation() without return types