code: def test_select_masks_wrong_mask_meta_dim():
      def test_data():
          # Expects 3 integers, not 4
          polygons = [
              np.array(
                  [[0, 0, 2, -1], [1, 3, 5, -1], [2, 6, 8, -1]],
                  dtype=np.int32,
              )
          ]
          vertices = [np.array(np.random.rand(9, 2), dtype=np.float32)]
          mask_ids = [np.array([0], dtype=np.int32)]
          return polygons, vertices, mask_ids
  
      _test_select_masks_wrong_input(
          lambda: test_data(),
          err_regex="``polygons`` is expected to contain 2D tensors with 3 columns: "
          "``mask_id, start_idx, end_idx``\\. Got \\d* columns\\.",
      )
  
file_path: DALI/dali/test/python/operator_2/test_segmentation_select_masks.py
imports: from nose_utils import assert_raises
  import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import random
  from segmentation_test_utils import make_batch_select_masks
label_desc: Use image node_id 6 for calling a global function with example usage: test_select_masks_wrong_mask_meta_dim() and returns: polygons,  vertices,  mask_ids