class_docstr: A Datasource for WebDataset datasets (tar format with naming conventions).
class_docstr_tok: ["A","Datasource","for","WebDataset","datasets","(","tar","format","with","naming","conventions",")","."]
code: def __init__(
      self,
      paths: Union[str, List[str]],
      decoder: Optional[Union[bool, str, callable, list]] = True,
      fileselect: Optional[Union[bool, callable, list]] = None,
      filerename: Optional[Union[bool, callable, list]] = None,
      suffixes: Optional[Union[bool, callable, list]] = None,
      verbose_open: bool = False,
      **file_based_datasource_kwargs,
  ):
      super().__init__(paths, **file_based_datasource_kwargs)
  
      self.decoder = decoder
      self.fileselect = fileselect
      self.filerename = filerename
      self.suffixes = suffixes
      self.verbose_open = verbose_open
  
imports: import fnmatch
  import io
  import re
  import tarfile
  from functools import partial
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union
  from ray.data.block import BlockAccessor
  from ray.data.datasource.file_based_datasource import FileBasedDatasource
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 to create a new WebDatasetDatasource object from inherited base classes: FileBasedDatasource with example: obj = WebDatasetDatasource(paths, decoder, fileselect, filerename, suffixes, verbose_open)