class_docstr_tok: []
code: def get_examples(self, data_dir, split):
      if split != "train":
          raise ValueError
      path = os.path.join(data_dir, f"{split}.csv")
  
      with open(path, encoding="utf8") as f:
          reader = csv.reader(f, delimiter=",")
          for i, row in enumerate(reader):
              if i == 0:
                  continue
              rating_env, rating_flavor, rating_service, text = (
                  row[3],
                  row[4],
                  row[5],
                  row[7],
              )
              if rating_env == "":
                  continue  # illegal data
              example = InputExample(
                  meta={
                      "text": text,
                      "question": "环境",
                      "options": self.labels_mapped,
                  },
                  tgt_text=self.get_label(rating_env),
              )
              examples.append(example)
              example = InputExample(
                  meta={
                      "text": text,
                      "question": "特色",
                      "options": self.labels_mapped,
                  },
                  tgt_text=self.get_label(rating_flavor),
              )
              examples.append(example)
              example = InputExample(
                  meta={
                      "text": text,
                      "question": "设施",
                      "options": self.labels_mapped,
                  },
                  tgt_text=self.get_label(rating_service),
              )
              examples.append(example)
  
imports: from .processor import *
label_desc: Use image node_id 2 for calling the RatingDianping obj's underlying member method code with example usage: obj.get_examples(data_dir, split) without return types