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: :param str task: indicate data sample format.
docstr_tok: [":","param","str","task",":","indicate","data","sample","format","."]
code: def __init__(self, task="UT"):
      r"""
      :param str task: indicate data sample format.
  
      """
      self._i = 0
      self.dataset = []
  
      if task.upper() not in sample_map:
          logger.warning(
              f"Do not support task: {task}, default utilize UT sample."
          )
          self.task = "UT"
      else:
          self.task = task.upper()
  
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 1 to create a new Dataset object  with example: obj = Dataset(task)