code: def __init__(
      self,
      path: str,
      encoder: Optional[Union[bool, str, callable, list]] = True,
      *,
      file_format: str = "tar",
      **file_datasink_kwargs,
  ):
      super().__init__(path, file_format="tar", **file_datasink_kwargs)
  
      self.encoder = encoder
  
file_path: ray/python/ray/data/datasource/webdataset_datasink.py
imports: import io
  import tarfile
  import time
  import uuid
  from typing import Optional, Union
  import pyarrow
  from ray.data.block import BlockAccessor
  from ray.data.datasource.file_datasink import BlockBasedFileDatasink
  from ray.data.datasource.webdataset_datasource import _apply_list, _default_encoder, _make_iterable
label_desc: Use image node_id 1 to create a new _WebDatasetDatasink object from inherited base classes: BlockBasedFileDatasink with example: obj = _WebDatasetDatasink(path, encoder)