// Finally, we combine the arrays that we got for each instance into one big array (or set
// of arrays) per field.
for field_name, field_array_list in field_arrays.items():
if field_name == "metadata":
continue
if isinstance(field_array_list[0], dict):
// This is creating a dict of {token_indexer_key: batch_array} for each
// token indexer used to index this field. This is mostly utilised by TextFields.
token_indexer_key_to_batch_dict = defaultdict(list) // type: Dict[str, List[numpy.ndarray]]