code: def test_record_to_fo_detections(object_detection_record):
      detections = record_to_fo_detections(
          object_detection_record,
          lambda bbox: _convert_bbox_to_fo_bbox(bbox, 500, 500),
      )
  
      for fo_bbox in detections:
          assert isinstance(fo_bbox, Detection)
  
file_path: icevision/tests/data/test_convert_records_to_fo.py
imports: import imp
  from venv import create
  import pytest
  from PIL import Image
  from fiftyone import list_datasets, load_dataset, Detection, Sample, Dataset
  from icevision import tfms
  from icevision import data
  from icevision.data import Prediction
  from icevision.data.convert_records_to_fo import _convert_bbox_to_fo_bbox, record_to_fo_detections
  from icevision.data import convert_record_to_fo_sample, convert_prediction_to_fo_sample, create_fo_dataset
  from tests.conftest import object_detection_record
label_desc: Use image node_id 2 for calling a global function with example usage: test_record_to_fo_detections(object_detection_record) without return types