code: def test_webdataset_errors_on_bad_file(bad_wds_file):
      data_files = {"train": [bad_wds_file]}
      webdataset = WebDataset(data_files=data_files)
      with pytest.raises(ValueError):
          webdataset._split_generators(DownloadManager())
  
file_path: datasets/tests/packaged_modules/test_webdataset.py
imports: import json
  import tarfile
  import numpy
  import pytest
  from datasets import Audio, DownloadManager, Features, Image, Value
  from datasets.packaged_modules.webdataset.webdataset import WebDataset
  from ..utils import require_pil, require_sndfile
label_desc: Use image node_id 6 for calling a global function with example usage: test_webdataset_errors_on_bad_file(bad_wds_file) without return types