code: def test_records_rating_range():
      rating_ranges = ((6, 8), [8, 10])
      for rating_range in rating_ranges:
          records = list(
              DATASET.records(rating_range=rating_range, limit=10)
          )
          assert all(
              rating_range[0] <= meta["rating"] < rating_range[1]
              for text, meta in records
          )
  
file_path: textacy/tests/datasets/test_imdb.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.imdb import IMDB
label_desc: Use image node_id 10 for calling a global function with example usage: test_records_rating_range() without return types