code: def test_scan_records_with_filter(
      mocked_client,
      gutenberg_spacy_ner,
  ):
      expected_id = "00c27206-da48-4fc3-aab7-4b730628f8ac"
      data = active_api().datasets.scan(
          name=gutenberg_spacy_ner,
          projection={"*"},
          query_text=f"id: {expected_id}",
      )
      data = list(data)
      assert len(data) == 1
      for d in data:
          assert (
              expected_id == TokenClassificationRecord.parse_obj(d).id
          )
  
file_path: argilla/tests/integration/client/test_scan_raw_records.py
imports: import pytest
  from argilla.client.api import load
  from argilla.client.sdk.token_classification.models import TokenClassificationRecord
  from argilla.client.singleton import active_api
label_desc: Use image node_id 2 for calling a global function with example usage: test_scan_records_with_filter(mocked_client, gutenberg_spacy_ner) without return types