code: def test_records_category(self):
      categories = (
          {"Living people"},
          {"All stub articles", "Coordinates on Wikidata"},
      )
      for category in categories:
          records = list(WIKIPEDIA.records(category=category, limit=3))
          assert any(
              ctgry in meta["categories"]
              for _, meta in records
              for ctgry in category
          )
  
imports: import os
  import re
  import pytest
  from textacy.datasets import wikimedia
label_desc: Use image node_id 9 for calling the TestWikipedia obj's underlying member method code with example usage: obj.test_records_category() without return types