code: def record(samples_source):
      record = BaseRecord(
          (
              BBoxesRecordComponent(),
              InstancesLabelsRecordComponent(),
              # InstanceMasksRecordComponent(),
              FilepathRecordComponent(),
          )
      )
  
      record.set_record_id(1)
      record.set_image_size(3, 3)
      record.set_filepath(
          samples_source / "voc/JPEGImages/2007_000063.jpg"
      )
      record.detection.set_class_map(ClassMap(["a", "b"]))
      record.detection.add_labels(["a", "b"])
      record.detection.add_bboxes(
          [BBox.from_xyxy(1, 2, 4, 4), BBox.from_xyxy(1, 2, 1, 3)]
      )
      # mask_filepath = samples_source / "voc/SegmentationObject/2007_000063.png"
      # record.detection.add_masks([VocMaskFile(mask_filepath)])
  
      return record
  
file_path: icevision/tests/core/test_record.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 1 for calling a global function with example usage: record(samples_source) and returns: record