code: def _clear_docs_user_data(docs: Iterable[Doc]) -> Iterable[Doc]:
      # TODO: figure out if/how to clear out custom doc extension values
      for doc in docs:
          doc.user_data.clear()
          yield doc
  
file_path: textacy/src/textacy/io/spacy.py
imports: from __future__ import annotations
  import pickle
  from typing import Iterable, Literal, Optional
  from spacy.tokens import Doc, DocBin
  from ..None import errors, spacier, types
  from .None import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _clear_docs_user_data(docs) without return types