code: def test_text_classification_text_inputs():
      record_id = str(uuid.uuid4())
      with pytest.raises(ValueError, match="either 'text' or 'inputs'"):
          TextClassificationRecord()
  
      with pytest.raises(ValueError, match="either 'text' or 'inputs'"):
          TextClassificationRecord(
              text="mock", inputs={"text": "mock_test"}
          )
  
      with pytest.warns(
          FutureWarning,
          match=r"the `inputs` argument of the `TextClassificationRecord` will not accept strings.",
      ):
          TextClassificationRecord(inputs="mock")
  
      event_timestamp = datetime.datetime.now()
      assert TextClassificationRecord(
          id=record_id, text="mock", event_timestamp=event_timestamp
      ) == TextClassificationRecord(
          id=record_id,
          inputs={"text": "mock"},
          event_timestamp=event_timestamp,
      )
  
      assert TextClassificationRecord(
          id=record_id, inputs=["mock"], event_timestamp=event_timestamp
      ) == TextClassificationRecord(
          id=record_id,
          inputs={"text": ["mock"]},
          event_timestamp=event_timestamp,
      )
  
      assert TextClassificationRecord(
          id=record_id,
          text="mock",
          inputs={"text": "mock"},
          event_timestamp=event_timestamp,
      ) == TextClassificationRecord(
          id=record_id,
          inputs={"text": "mock"},
          event_timestamp=event_timestamp,
      )
  
      rec = TextClassificationRecord(text="mock")
      with pytest.raises(
          AttributeError,
          match="You cannot assign a new value to `text`",
      ):
          rec.text = "mock"
      with pytest.raises(
          AttributeError,
          match="You cannot assign a new value to `inputs`",
      ):
          rec.inputs = "mock"
  
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 3 for calling a global function with example usage: test_text_classification_text_inputs() without return types