code: def test_first_returns_a_single_record(self):
      rows = records.RecordCollection(IdRecord(i) for i in range(1))
      assert rows.first() == IdRecord(0)
  
imports: from collections import namedtuple
  import records
  from pytest import raises
label_desc: Use image node_id 7 for calling the TestRecordCollection obj's underlying member method code with example usage: obj.test_first_returns_a_single_record() without return types