code: def test_records_label():
      labels = ({"pos"}, {"neg", "unsup"})
      for label in labels:
          records = list(DATASET.records(label=label, limit=10))
          assert all(meta["label"] in label for text, meta in records)
  
file_path: textacy/tests/datasets/test_imdb.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.imdb import IMDB
label_desc: Use image node_id 9 for calling a global function with example usage: test_records_label() without return types