code: def test_next(self):
      rows = records.RecordCollection(IdRecord(i) for i in range(10))
      for i in range(10):
          check_id(i, next(rows))
  
imports: from collections import namedtuple
  import records
  from pytest import raises
label_desc: Use image node_id 2 for calling the TestRecordCollection obj's underlying member method code with example usage: obj.test_next() without return types