code: def test_scan_records(gutenberg_spacy_ner, fields):
      import argilla as rg
      import pandas as pd
  
      data = active_api().datasets.scan(
          name=gutenberg_spacy_ner,
          projection=fields,
      )
  
      df = pd.DataFrame(data=data).set_index("id", drop=True)
      ds = load(gutenberg_spacy_ner)
      assert len(df) == len(ds)
      assert set([c for c in df.columns]) == fields
      print(df)
  
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 1 for calling a global function with example usage: test_scan_records(gutenberg_spacy_ner, fields) without return types