code: def get_doc_extensions(
      name: str,
  ) -> dict[str, dict[str, types.DocExtFunc]]:
      """
      Get a collection of custom extensions that can be set on or removed from
      the global :class:`spacy.tokens.Doc` , specified by ``name`` .
  
      Args:
          name: Name of a function registered in :obj:`doc_extensions_registry`
              that returns a collection of custom doc extensions as a dictionary.
              For example, "extract" or "extract.keyterms".
  
      Note:
          If ``name`` isn't found, you may need to import the module from which it comes.
          For example, the "text_stats" collection of doc extensions is only available
          after running ``import textacy.text_stats`` .
      """
      return doc_extensions_registry.get(name)()
  
imports: import logging
  import catalogue
  from spacy.tokens import Doc
  from ..None import types
label_desc: Use image node_id 1 for calling a global function with example usage: get_doc_extensions(name) and returns: doc_extensions_registry