code: def _update_from_index(datapoints: List[Dict], new_field: str):
      for index, datapoint in enumerate(datapoints):
          datapoint[new_field] = index
  
imports: import os
  from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
  from funcy import first, last
  from dvc.exceptions import DvcException
  from dvc.render import FIELD, FILENAME, INDEX, REVISION
  from .None import Converter
label_desc: Use image node_id 11 for calling a global function with example usage: _update_from_index(datapoints, new_field) without return types