code: def _get_doc_extensions_text_stats_diversity() -> (
      dict[str, dict[str, types.DocExtFunc]]
  ):
      return {
          "ttr": {"method": diversity.ttr},
          "log_ttr": {"method": diversity.log_ttr},
          "segmented_ttr": {"method": diversity.segmented_ttr},
          "mtld": {"method": diversity.mtld},
          "hdd": {"method": diversity.hdd},
      }
  
imports: from ..None import types
  from ..spacier.extensions import doc_extensions_registry
  from .None import basics, counts, diversity, readability
label_desc: Use image node_id 3 for calling a global function with example usage: _get_doc_extensions_text_stats_diversity() and returns: dict