docs: def _warn(message, warn_type='user'):
      """
      message (unicode): The message to display.
      category (Warning): The Warning to show.
      """
      w_id = message.split('[', 1)[1].split(']', 1)[0]  # get ID from string
      if warn_type in SPACY_WARNING_TYPES and w_id not in SPACY_WARNING_IGNORE:
          category = WARNINGS[warn_type]
          stack = inspect.stack()[-1]
          with warnings.catch_warnings():
              if SPACY_WARNING_FILTER:
                  warnings.simplefilter(SPACY_WARNING_FILTER, category)
              warnings.warn_explicit(message, category, stack[1], stack[2])