code: def test_mask_rcnn_build_train_batch_empty(empty_annotations_record):
      (_, targets), _ = mask_rcnn.build_train_batch(
          [empty_annotations_record]
      )
  
      height, width = empty_annotations_record.img.shape[:-1]
      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)
          )
          assert x["masks"].equal(
              torch.zeros((0, height, width), dtype=torch.uint8)
          )
  
imports: import pytest
  from icevision.all import *
  from icevision.models.torchvision import faster_rcnn, mask_rcnn, keypoint_rcnn
label_desc: Use image node_id 15 for calling a global function with example usage: test_mask_rcnn_build_train_batch_empty(empty_annotations_record) without return types