code: def test_value_2d_mask(self, mask, expected_box_label):
      box_label = convert_mask_to_box(mask)
      assert_allclose(
          box_label[0],
          expected_box_label[0],
          type_test=True,
          device_test=True,
          atol=1e-3,
      )
      assert_allclose(
          box_label[1],
          expected_box_label[1],
          type_test=True,
          device_test=True,
          atol=1e-3,
      )
  
file_path: MONAI/tests/test_box_transform.py
imports: from __future__ import annotations
  import unittest
  from copy import deepcopy
  import numpy
  import torch
  from parameterized import parameterized
  from monai.apps.detection.transforms.box_ops import convert_mask_to_box
  from monai.apps.detection.transforms.dictionary import AffineBoxToImageCoordinated, AffineBoxToWorldCoordinated, BoxToMaskd, ClipBoxToImaged, ConvertBoxModed, FlipBoxd, MaskToBoxd, RandCropBoxByPosNegLabeld, RandFlipBoxd, RandRotateBox90d, RandZoomBoxd, RotateBox90d, ZoomBoxd
  from monai.data.meta_tensor import MetaTensor
  from monai.transforms import CastToTyped, Invertd
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestBoxTransform obj's underlying member method code with example usage: obj.test_value_2d_mask(mask, expected_box_label) without return types