code: def test_rbox_to_mask(box, shape, mask):
      masks = metrics.rbox_to_mask(np.asarray(box)[None, ...], shape)
      assert masks.shape == (1, *shape)
      assert np.all(masks[0] == np.asarray(mask, dtype=bool))
  
file_path: doctr/tests/common/test_utils_metrics.py
imports: import numpy
  import pytest
  from doctr.utils import metrics
label_desc: Use image node_id 5 for calling a global function with example usage: test_rbox_to_mask(box, shape, mask) without return types