class_docstr: Dataset with additional indexing information.
docstr: Convenience function to convert a dict of datasets.
docstr_tok: ["Convenience","function","to","convert","a","dict","of","datasets","."]
code: def index_all(cls, datasets: Mapping[str, Dataset], id_fn: IdFnType):
      """Convenience function to convert a dict of datasets."""
      return {
          name: cls(base=ds, id_fn=id_fn)
          for name, ds in datasets.items()
      }
  
imports: from collections.abc import Callable, Mapping, Sequence
  import hashlib
  import glob
  import inspect
  import os
  import random
  import types
  from typing import Optional, Union, cast
  from absl import logging
  from lit_nlp.api import types
  from lit_nlp.lib import serialize
  from lit_nlp.lib import utils
label_desc: Use image node_id 5 for calling the IndexedDataset obj's underlying member method code with example usage: obj.index_all(cls, datasets, id_fn) and returns: unknown