code: def test_invalid_number_of_shards():
      @pipeline_def(batch_size=1, device_id=0, num_threads=4)
      def get_test_pipe():
          root = os.path.join(
              os.environ["DALI_EXTRA_PATH"], "db/single/mixed"
          )
          files, labels = fn.readers.file(
              file_root=root, shard_id=0, num_shards=9999
          )
          return files, labels
  
      pipe = get_test_pipe()
      assert_raises(
          RuntimeError,
          pipe.build,
          glob=(
              "The number of input samples: *,"
              " needs to be at least equal to the requested number of shards:*."
          ),
      )
  
imports: import glob
  import numpy
  import nvidia.dali.fn
  import os
  import random
  import tempfile
  from nvidia.dali import Pipeline, pipeline_def
  from nose_utils import assert_raises
  from test_utils import compare_pipelines
label_desc: Use image node_id 13 for calling a global function with example usage: test_invalid_number_of_shards() and returns: files,  labels