docs: def AddIndex(node, index=None):
    """
    Recursively add the current index (with respect to a repeated section) in all
    data dictionaries.
    """
    if isinstance(node, list):
      for i, item in enumerate(node):
        AddIndex(item, index=i)
    elif isinstance(node, dict):
      if index is not None:
        node['index'] = index
      for key in node:
        AddIndex(node[key])