class_docstr: CSV datasource, for reading and writing CSV files.
code: def __init__(
      self,
      paths: Union[str, List[str]],
      arrow_csv_args: Optional[Dict[str, Any]] = None,
      **file_based_datasource_kwargs,
  ):
      from pyarrow import csv
  
      super().__init__(paths, **file_based_datasource_kwargs)
  
      if arrow_csv_args is None:
          arrow_csv_args = {}
  
      self.read_options = arrow_csv_args.pop(
          "read_options", csv.ReadOptions(use_threads=False)
      )
      self.parse_options = arrow_csv_args.pop(
          "parse_options", csv.ParseOptions()
      )
      self.arrow_csv_args = arrow_csv_args
  
file_path: ray/python/ray/data/datasource/csv_datasource.py
imports: from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Union
  from ray.data.block import Block
  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 CSVDatasource object from inherited base classes: FileBasedDatasource with example: obj = CSVDatasource(paths, arrow_csv_args)