class_docstr: The virtual base class for nlp datasets, such TextClassificationDataset, SeqLabelingDataset, and so on.
  The base class must be supered and re-implemented the method _read_file.
class_docstr_tok: ["The","virtual","base","class","for","nlp","datasets",",","such","TextClassificationDataset",",","SeqLabelingDataset",",","and","so","on",".","The","base","class","must","be","supered","and","re-implemented","the","method","_read_file","."]
docstr: Gets all labels.
docstr_tok: ["Gets","all","labels","."]
code: def get_labels(self):
      """
      Gets all labels.
      """
      return self.label_list
  
imports: import csv
  import io
  import os
  from typing import Dict, List, Optional, Union, Tuple
  import numpy
  import paddle
  import paddlenlp
  from packaging.version import Version
  from paddlehub.env import DATA_HOME
  from paddlenlp.transformers import PretrainedTokenizer
  from paddlenlp.data import JiebaTokenizer
  from paddlehub.utils.log import logger
  from paddlehub.utils.utils import download, reseg_token_label, pad_sequence, trunc_sequence
  from paddlehub.utils.xarfile import is_xarfile, unarchive
label_desc: Use image node_id 5 for calling the BaseNLPDataset obj's underlying member method code with example usage: obj.get_labels() and returns: self