code: def test_no_records_found_error(self, monkeypatch):
      def mock_load(*args, **kwargs):
          return []
  
      monkeypatch.setattr(
          "argilla.labeling.text_classification.weak_labels.load",
          mock_load,
      )
  
      with pytest.raises(
          NoRecordsFoundError,
          match="No records found in dataset 'mock'.",
      ):
          WeakLabels(rules=[lambda x: None], dataset="mock")
      with pytest.raises(
          NoRecordsFoundError,
          match="No records found in dataset 'mock' with query 'mock'.",
      ):
          WeakLabels(
              rules=[lambda x: None], dataset="mock", query="mock"
          )
      with pytest.raises(
          NoRecordsFoundError,
          match=r"No records found in dataset 'mock' with ids \[-1\].",
      ):
          WeakLabels(rules=[lambda x: None], dataset="mock", ids=[-1])
      with pytest.raises(
          NoRecordsFoundError,
          match=r"No records found in dataset 'mock' with query 'mock' and with ids \[-1\].",
      ):
          WeakLabels(
              rules=[lambda x: None],
              dataset="mock",
              query="mock",
              ids=[-1],
          )
  
imports: import sys
  from typing import Callable, List, Optional, Union
  import numpy
  import pandas
  import pytest
  from argilla.client.models import TextClassificationRecord
  from argilla.client.sdk.text_classification.models import CreationTextClassificationRecord, TextClassificationBulkData
  from argilla.labeling.text_classification import WeakLabels, WeakMultiLabels
  from argilla.labeling.text_classification.rule import Rule
  from argilla.labeling.text_classification.weak_labels import DuplicatedRuleNameError, MissingLabelError, MultiLabelError, NoRecordsFoundError, NoRulesFoundError, WeakLabelsBase
  from argilla.server.commons.models import TaskType
  from pandas.testing import assert_frame_equal
  from tests.integration.helpers import SecuredClient
label_desc: Use image node_id 5 for calling the TestWeakLabelsBase obj's underlying member method code with example usage: obj.test_no_records_found_error(monkeypatch) and returns: list