code: def mask_records(img, labels, bboxes, masks, class_map):
      record = BaseRecord(
          (
              ImageRecordComponent(),
              InstancesLabelsRecordComponent(),
              BBoxesRecordComponent(),
              InstanceMasksRecordComponent(),
          )
      )
      record.set_record_id(1)
      record.set_img(img)
      record.detection.set_class_map(class_map)
      record.detection.add_labels(labels)
      record.detection.add_bboxes(bboxes)
      record.detection.add_masks([masks])
      sample = record.load()
      return [sample] * 2
  
file_path: icevision/tests/models/mmdet/test_dataloaders.py
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 6 for calling a global function with example usage: mask_records(img, labels, bboxes, masks, class_map) and returns: unknown