code: def test_raise_proper_error():
      dao = DatasetRecordsDAO.get_instance(
          GenericElasticEngineBackend.get_instance()
      )
      with pytest.raises(MissingDatasetRecordsError):
          dao.search_records(
              dataset=BaseDatasetDB(
                  name="mock-notfound",
                  workspace="workspace-name",
                  task=TaskType.text_classification,
              )
          )
  
imports: import pytest
  from argilla.server.commons.models import TaskType
  from argilla.server.daos.backend import GenericElasticEngineBackend
  from argilla.server.daos.models.datasets import BaseDatasetDB
  from argilla.server.daos.records import DatasetRecordsDAO
  from argilla.server.errors import MissingDatasetRecordsError
label_desc: Use image node_id 1 for calling a global function with example usage: test_raise_proper_error() without return types