def METHOD_NAME():
    def test_data():
        polygons = [np.array([[0, 0, 20]], dtype=np.int32)]  # Out of bounds vertex index
        vertices = [np.array(np.random.rand(3, 2), dtype=np.float32)]  # Only 3 vertices
        mask_ids = [np.array([0], dtype=np.int32)]
        return polygons, vertices, mask_ids
    _test_select_masks_wrong_input(
        lambda: test_data(),
        err_regex="Vertex index range for mask id .* is out of bounds\\. "
                  "Expected to be within the range of available vertices .*\\.")