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, text = row[2], row[4] + "," + row[5]
              if rating not in self.labels_origin:
                  continue  # illegal
              example = InputExample(
                  meta={
                      "text": text,
                      "options": self.labels_mapped,
                  },
                  tgt_text=self.get_label(rating),
              )
              examples.append(example)
  
imports: from .processor import *
label_desc: Use image node_id 2 for calling the RatingShopping obj's underlying member method code with example usage: obj.get_examples(data_dir, split) without return types