code: def test_records_subreddit():
      subreddits = ({"politics"}, {"politics", "programming"})
      for subreddit in subreddits:
          records = list(DATASET.records(subreddit=subreddit, limit=10))
          assert all(
              meta["subreddit"] in subreddit for text, meta in records
          )
  
file_path: textacy/tests/datasets/test_reddit_comments.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.reddit_comments import RedditComments
label_desc: Use image node_id 7 for calling a global function with example usage: test_records_subreddit() without return types