code: def test_records_opinion_author():
      opinion_authors = ({78}, {78, 81})
      for opinion_author in opinion_authors:
          records = list(
              DATASET.records(opinion_author=opinion_author, limit=10)
          )
          assert len(records) >= 1
          assert all(
              meta["maj_opinion_author"] in opinion_author
              for text, meta in records
          )
  
file_path: textacy/tests/datasets/test_supreme_court.py
imports: import datetime
  import os
  import pytest
  from textacy.datasets.supreme_court import SupremeCourt
label_desc: Use image node_id 7 for calling a global function with example usage: test_records_opinion_author() without return types