code: def test_setitem_delitem(
      self, monkeypatch, singlelabel_textclassification_records
  ):
      monkeypatch.setattr(
          "argilla.client.datasets.DatasetBase._RECORD_TYPE",
          TextClassificationRecord,
      )
      dataset = DatasetBase(
          [
              rec.copy(deep=True)
              for rec in singlelabel_textclassification_records
          ],
      )
  
      record = TextClassificationRecord(text="mock")
      dataset[0] = record
  
      assert dataset._records[0] is record
  
      assert len(dataset) == 5
      del dataset[1]
      assert len(dataset) == 4
  
      with pytest.raises(
          WrongRecordTypeError,
          match=(
              "You are only allowed to set a record of type"
              " .*TextClassificationRecord.* but you provided .*Text2TextRecord.*"
          ),
      ):
          dataset[0] = Text2TextRecord(text="mock")
  
imports: import copy
  import os
  import sys
  from time import sleep
  import datasets
  import pandas
  import pytest
  import spacy
  from argilla.client.datasets import DatasetBase, DatasetForText2Text, DatasetForTextClassification, DatasetForTokenClassification, WrongRecordTypeError, read_datasets, read_pandas
  from argilla.client.models import Text2TextRecord, TextClassificationRecord, TokenClassificationRecord
  from argilla.datasets import TextClassificationSettings
label_desc: Use image node_id 9 for calling the TestDatasetBase obj's underlying member method code with example usage: obj.test_setitem_delitem(monkeypatch, singlelabel_textclassification_records) without return types