code: def test_record_validation_on_assignment(record):
      with pytest.raises(ValidationError):
          record.prediction = "rubbish"
  
      with pytest.raises(ValidationError):
          record.annotation = [("rubbish",)]
  
      with pytest.raises(ValidationError):
          record.vectors = "rubbish"
  
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 18 for calling a global function with example usage: test_record_validation_on_assignment(record) without return types