code: def test_output(self, input_boxes, target_masks):
      out_masks = boxes_to_masks(
          input_boxes, image_size=target_masks.shape[-2:]
      )
      assert torch.all(target_masks == out_masks)
  
imports: import pytest
  import torch
  from torch import Tensor
  from anomalib.data.utils.boxes import boxes_to_anomaly_maps, boxes_to_masks, masks_to_boxes
label_desc: Use image node_id 1 for calling the TestBoxesToMasks obj's underlying member method code with example usage: obj.test_output(input_boxes, target_masks) without return types