code: def _from_dict(d: t.Dict[str, t.Dict[str, t.Any]]):
      indexes: t.List[Index] = []
      for name, index in d.items():
          key = [_index_key_from_dict(*field) for field in index["key"]]
          if None in key:
              continue
  
          wildcard_projection = None
          # if a global '$**' wildcard index is present, specific fields may be
          # defined
          # https://www.mongodb.com/docs/manual/core/indexes/index-types/index-wildcard/create-wildcard-index-multiple-fields/#restrictions
          if _WILDCARD_PROJECTION in index:
              wildcard_projection = WildcardProjection(
                  fields=sorted(
                      [f for f in index[_WILDCARD_PROJECTION]]
                  ),
                  inclusion=set(
                      index[_WILDCARD_PROJECTION].values()
                  ).pop()
                  > 0,
              )
  
          indexes.append(
              Index(
                  name=name,
                  unique=index.get("unique", False),
                  key=key,
                  wildcard_projection=wildcard_projection,
              )
          )
  
      return indexes
  
file_path: fiftyone/fiftyone/server/indexes.py
imports: from enum import Enum
  import typing
  import strawberry
  from fiftyone.core.collections import SampleCollection
label_desc: Use image node_id 2 for calling a global function with example usage: _from_dict(d) and returns: indexes