class_docstr: Any iterable of (label, text_input) pairs qualifies as a ``Dataset``.
class_docstr_tok: ["Any","iterable","of","(","label",",","text_input",")","pairs","qualifies","as","a","``","Dataset","``","."]
docstr: Save dataset to csv file.
  
  :param out_path: file path
  :param encoding: file's encoding, default: utf-8
  :param headers: file's headers, if None, make file's first line
      as headers. default: None
  :param sep: separator for each column. default: ','
  :return:
docstr_tok: ["Save","dataset","to","csv","file",".",":","param","out_path",":","file","path",":","param","encoding",":","file","'s","encoding",",","default",":","utf-8",":","param","headers",":","file","'s","headers",",","if","None",",","make","file","'s","first","line","as","headers",".","default",":","None",":","param","sep",":","separator","for","each","column",".","default",":","'",",","'",":","return",":"]
code: def save_csv(self, out_path, encoding="utf-8", headers=None, sep=","):
      r"""
      Save dataset to csv file.
  
      :param out_path: file path
      :param encoding: file's encoding, default: utf-8
      :param headers: file's headers, if None, make file's first line
          as headers. default: None
      :param sep: separator for each column. default: ','
      :return:
  
      """
      save_csv(
          self.dump(),
          out_path,
          encoding=encoding,
          headers=headers,
          sep=sep,
      )
      logger.info("Save samples to {0}!".format(out_path))
  
imports: from tqdm import tqdm
  from ...common.utils import logger
  from ..component.sample import Sample, CnSample
  from ...common.utils.load import task_class_load
  from ...common.settings import SAMPLE_PATH, NLP_TASK_MAP
  from ...common.utils.file_io import read_csv, read_json, save_csv, save_json
label_desc: Use image node_id 17 for calling the Dataset obj's underlying member method code with example usage: obj.save_csv(out_path, encoding, headers, sep) without return types