code: def test_add_annotations(fridge_faster_rcnn_model, fridge_ds):
      model = fridge_faster_rcnn_model
      ds, _ = fridge_ds
  
      samples, _ = faster_rcnn.interp.get_losses(model, ds)
      samples = models.add_annotations(samples)
      assert "loss_classifier" in samples[0].losses["text"]
      assert "IMG" in samples[0].losses["text"]
  
file_path: icevision/tests/models/torchvision_models/faster_rcnn/test_show_results.py
imports: import pytest
  from icevision.all import *
  from icevision.models.torchvision import faster_rcnn
label_desc: Use image node_id 5 for calling a global function with example usage: test_add_annotations(fridge_faster_rcnn_model, fridge_ds) without return types