code: def remove_doc_extensions(name: str):
      """
      Remove a collection of custom extensions 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".
      """
      for name in get_doc_extensions(name).keys():
          if Doc.has_extension(name):
              _ = Doc.remove_extension(name)
          else:
              LOGGER.warning(
                  "%s `Doc` extension not found; skipping removal...",
                  name,
              )
  
imports: import logging
  import catalogue
  from spacy.tokens import Doc
  from ..None import types
label_desc: Use image node_id 3 for calling a global function with example usage: remove_doc_extensions(name) without return types