code: def test_records_lang():
      langs = ({"en"}, {"en", "es"})
      for lang in langs:
          records = list(DATASET.records(lang=lang, limit=10))
          assert all(meta["lang"] in lang for _, meta in records)
  
file_path: textacy/tests/datasets/test_udhr.py
imports: import os
  import pytest
  import textacy
  from textacy.datasets.udhr import UDHR
label_desc: Use image node_id 7 for calling a global function with example usage: test_records_lang() without return types