docstr: Return question and choices from HF Datasets example format
docstr_tok: ["Return","question","and","choices","from","HF","Datasets","example","format"]
code: def _create_example_from_hf_datasets_format(
      cls, raw_example, set_type, i
  ):
      """Return question and choices from HF Datasets example format"""
      return Example(
          guid="%s-%s" % (set_type, i),
          prompt=raw_example["question"],
          choice_list=raw_example["choices"]["text"],
          label=raw_example["answerKey"]
          if set_type != "test"
          else cls.CHOICE_KEYS[-1],
      )
  
imports: from dataclasses import dataclass
  from jiant.tasks.lib.templates.shared import labels_to_bimap
  from jiant.tasks.lib.templates import multiple_choice
  from jiant.utils.python.io import read_json_lines
label_desc: Use image node_id 7 for calling the CommonsenseQATask obj's underlying member method code with example usage: obj._create_example_from_hf_datasets_format(cls, raw_example, set_type, i) and returns: Example