code: def test_records_date_range():
      date_ranges = (
          ("2007-10", "2007-12"),
          ["2007-10-01", "2008-01-01"],
      )
      for date_range in date_ranges:
          records = list(
              DATASET.records(date_range=date_range, limit=10)
          )
          assert all(
              date_range[0] <= meta["created_utc"] < date_range[1]
              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 8 for calling a global function with example usage: test_records_date_range() without return types