code: def test_argument_errors():
      def paths_index_paths_error():
          webdataset_pipeline = base.webdataset_raw_pipeline(
              [
                  os.path.join(
                      get_dali_extra_path(),
                      "db/webdataset/MNIST/devel-0.tar",
                  ),
                  os.path.join(
                      get_dali_extra_path(),
                      "db/webdataset/MNIST/devel-1.tar",
                  ),
                  os.path.join(
                      get_dali_extra_path(),
                      "db/webdataset/MNIST/devel-2.tar",
                  ),
              ],
              ["test.idx"],
              ["jpg", "cls"],
              batch_size=1,
              device_id=0,
              num_threads=1,
          )
          webdataset_pipeline.build()
  
      assert_raises(
          RuntimeError,
          paths_index_paths_error,
          glob="The number of index files, if any, must match the number of archives in the dataset",
      )
  
      assert_raises(
          RuntimeError,
          general_corner_case,
          missing_component_behavior="SomethingInvalid",
          glob="Invalid value for missing_component_behavior",
      )
      general_corner_case(missing_component_behavior="Skip")
  
      assert_raises(
          RuntimeError,
          general_corner_case,
          dtypes=[dali.types.STRING, dali.types.STRING],
          glob="Unsupported output dtype *. Supported types are",
      )
      assert_raises(
          RuntimeError,
          general_corner_case,
          dtypes=dali.types.INT8,
          glob="Number of extensions does not match the number of provided types",
      )
  
file_path: DALI/dali/test/python/reader/test_webdataset_corner.py
imports: import math
  import nvidia.dali
  import os
  import tempfile
  from glob import glob
  from nose.tools import assert_equal
  import webdataset_base
  from nose_utils import assert_raises
  from test_utils import compare_pipelines, get_dali_extra_path
label_desc: Use image node_id 8 for calling a global function with example usage: test_argument_errors() without return types