code: def camvid_records(
      samples_source, camvid_class_map
  ) -> RecordCollection:
      images_dir = samples_source / "camvid/images"
      labels_dir = samples_source / "camvid/labels"
      image_files = get_image_files(images_dir)
  
      records = RecordCollection(SemanticSegmentationRecord)
  
      for image_file in pbar(image_files):
          record = records.get_by_record_id(image_file.stem)
  
          if record.is_new:
              record.set_filepath(image_file)
              record.set_img_size(get_img_size(image_file))
              record.segmentation.set_class_map(camvid_class_map)
  
          mask_file = SemanticMaskFile(
              labels_dir / f"{image_file.stem}_P.png"
          )
          record.segmentation.set_mask(mask_file)
  
      records = records.autofix()
      # list of 5 records
      return records
  
imports: import pytest
  from icevision import *
  from icevision.imports import *
  from icevision.models.torchvision import faster_rcnn, keypoint_rcnn
  from icevision.models.ross import efficientdet
  from icevision.models.ross.efficientdet.backbones import *
  import albumentations
label_desc: Use image node_id 6 for calling a global function with example usage: camvid_records(samples_source, camvid_class_map) and returns: records