code: def records():
      def create_record_func():
          return BaseRecord([])
  
      records = RecordCollection(create_record_func)
      for record_id in ["file1", "file2", "file3", "file4"]:
          records.get_by_record_id(record_id)
      return records
  
file_path: icevision/tests/data/test_record_collection.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 1 for calling a global function with example usage: records() and returns: records, BaseRecord