class_docstr: Dataset that is compatible with :class:`torch.utils.data.Dataset`.
  This serves as a wrapper for manipulating all data fields
  with the operating behaviours defined in :class:`Transform`.
  The data fields of all the instantiated sentences can be accessed as an attribute of the dataset.
  
  Args:
      transform (Transform):
          An instance of :class:`Transform` and its derivations.
          The instance holds a series of loading and processing behaviours with regard to the specfic data format.
      data (list[list] or str):
          A list of instances or a filename.
          This will be passed into :meth:`transform.load`.
      kwargs (dict):
          Keyword arguments that will be passed into :meth:`transform.load` together with `data`
          to control the loading behaviour.
  
  Attributes:
      transform (Transform):
          An instance of :class:`Transform`.
      sentences (list[Sentence]):
          A list of sentences loaded from the data.
          Each sentence includes fields obeying the data format defined in ``transform``.
class_docstr_tok: ["Dataset","that","is","compatible","with",":","class",":","`","torch.utils.data.Dataset","`",".","This","serves","as","a","wrapper","for","manipulating","all","data","fields","with","the","operating","behaviours","defined","in",":","class",":","`","Transform","`",".","The","data","fields","of","all","the","instantiated","sentences","can","be","accessed","as","an","attribute","of","the","dataset",".","Args",":","transform","(","Transform",")",":","An","instance","of",":","class",":","`","Transform","`","and","its","derivations",".","The","instance","holds","a","series","of","loading","and","processing","behaviours","with","regard","to","the","specfic","data","format",".","data","(","list","[","list","]","or","str",")",":","A","list","of","instances","or","a","filename",".","This","will","be","passed","into",":","meth",":","`","transform.load","`",".","kwargs","(","dict",")",":","Keyword","arguments","that","will","be","passed","into",":","meth",":","`","transform.load","`","together","with","`","data","`","to","control","the","loading","behaviour",".","Attributes",":","transform","(","Transform",")",":","An","instance","of",":","class",":","`","Transform","`",".","sentences","(","list","[","Sentence","]",")",":","A","list","of","sentences","loaded","from","the","data",".","Each","sentence","includes","fields","obeying","the","data","format","defined","in","``","transform","``","."]
code: def __len__(self):
      return len(self.sentences)
  
imports: import torch
  import torch.distributed
  from underthesea.utils.sp_alg import kmeans
label_desc: Use image node_id 3 for calling the Dataset obj's underlying member method code with example usage: obj.__len__() and returns: len