code: def test_close_dataset():
      dataset = "test_close_dataset"
  
      created = dao.create_dataset(
          BaseDatasetDB(
              name=dataset,
              workspace="other",
              task=TaskType.text_classification,
          ),
      )
  
      dao.close(created)
      with pytest.raises(ClosedDatasetError, match=dataset):
          records.search_records(dataset=created)
  
      dao.open(created)
      records.search_records(dataset=created)
  
file_path: argilla/tests/unit/server/daos/test_datasets.py
imports: import pytest
  from argilla.server.commons.models import TaskType
  from argilla.server.daos.backend import GenericElasticEngineBackend
  from argilla.server.daos.datasets import DatasetsDAO
  from argilla.server.daos.models.datasets import BaseDatasetDB
  from argilla.server.daos.records import DatasetRecordsDAO
  from argilla.server.errors import ClosedDatasetError
label_desc: Use image node_id 3 for calling a global function with example usage: test_close_dataset() without return types