code: def accents(text: str, *, fast: bool = False) -> str:
      """
      Remove accents from any accented unicode characters in ``text``, either by
      replacing them with ASCII equivalents or removing them entirely.
  
      Args:
          text
          fast: If False, accents are removed from any unicode symbol
              with a direct ASCII equivalent; if True, accented chars
              for all unicode symbols are removed, regardless.
  
              .. note:: ``fast=True`` can be significantly faster than ``fast=False``,
                 but its transformation of ``text`` is less "safe" and more likely
                 to result in changes of meaning, spelling errors, etc.
  
      Returns:
          str
  
      See Also:
          For a more powerful (but slower) alternative, check out ``unidecode``:
          https://github.com/avian2/unidecode
      """
      if fast is False:
          return "".join(
              char
              for char in unicodedata.normalize("NFKD", text)
              if not unicodedata.combining(char)
          )
      else:
          return (
              unicodedata.normalize("NFKD", text)
              .encode("ascii", errors="ignore")
              .decode("ascii")
          )
  
file_path: textacy/src/textacy/preprocessing/remove.py
imports: from __future__ import annotations
  import re
  import unicodedata
  from typing import Collection, Optional
  from ..None import utils
  from .None import resources
label_desc: Use image node_id 1 for calling a global function with example usage: accents(text) and returns: str, unicodedata