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