code: def get_partial_examples(examples, features):
      example_index_to_features = collections.defaultdict(list)
      for feature in features:
          example_index_to_features[feature.example_index].append(
              feature
          )
      partial_examples = []
      for example_index, example in enumerate(examples):
          partial_examples.append(
              PartialExample(
                  doc_tokens=example.doc_tokens,
                  qas_id=example.qas_id,
                  partial_features=example_index_to_features[
                      example_index
                  ],
                  answers=example.answers,
              )
          )
      return partial_examples
  
imports: import collections
  import math
  import re
  import string
  from dataclasses import dataclass
  from typing import List, Dict
  from transformers.models.bert.tokenization_bert import BasicTokenizer
  from jiant.utils.display import maybe_tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: get_partial_examples(examples, features) and returns: partial_examples