code: def test_faster_rcnn_build_train_batch_empty(
      empty_annotations_record,
  ):
      (_, targets), _ = faster_rcnn.build_train_batch(
          [empty_annotations_record]
      )
  
      for x in targets:
          assert x["labels"].equal(torch.zeros(0, dtype=torch.int64))
          assert x["boxes"].equal(
              torch.zeros((0, 4), dtype=torch.float32)
          )
  
imports: import pytest
  from icevision.all import *
  from icevision.models.torchvision import faster_rcnn, mask_rcnn, keypoint_rcnn
label_desc: Use image node_id 7 for calling a global function with example usage: test_faster_rcnn_build_train_batch_empty(empty_annotations_record) without return types