code: def wrong_input_pipe(data_source_fn, reindex_masks=False):
      polygons, vertices, mask_ids = fn.external_source(
          source=data_source_fn, num_outputs=3, device="cpu"
      )
      out_polygons, out_vertices = fn.segmentation.select_masks(
          mask_ids, polygons, vertices, reindex_masks=reindex_masks
      )
      return polygons, vertices, mask_ids, out_polygons, out_vertices
  
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 3 for calling a global function with example usage: wrong_input_pipe(data_source_fn, reindex_masks) and returns: polygons,  vertices,  mask_ids,  out_polygons,  out_vertices