code: def test_records_date_range():
      date_ranges = (
          ["1840-01-01", "1860-01-01"],
          ("1500-01-01", "1600-01-01"),
      )
      for date_range in date_ranges:
          records = list(
              DATASET.records(date_range=date_range, limit=3)
          )
          assert len(records) >= 1
          assert all(
              date_range[0] <= meta["year"] < date_range[1]
              for text, meta in records
          )
  
file_path: textacy/tests/datasets/test_oxford_text_archive.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.oxford_text_archive import OxfordTextArchive
label_desc: Use image node_id 9 for calling a global function with example usage: test_records_date_range() without return types