docstr: :param list[dict] data_samples: list of dict data
  :return: DataSet obj obtaining
code: def encode(self, inputs):
      r"""
      :param list[dict] data_samples: list of dict data
      :return: DataSet obj obtaining
  
      """
      sentences = []
      label = []
      for sample in inputs:
          sentences.append(sample["x"])
          label.append([self.tag_vocab[i] for i in sample["y"]])
  
      return sentences, label
  
file_path: textflint/textflint/input/model/flint_model/flint_model_cws.py
imports: import torch
  from .flint_model import FlintModel, TASK_METRICS
label_desc: Use image node_id 3 for calling the FlintModelCWS obj's underlying member method code with example usage: obj.encode(inputs) and returns: sentences,  label