def _warn(message, warn_type="<STR_LIT:user>"):
if message.startswith("<STR_LIT:[>"):<EOL><INDENT>w_id = message.split("<STR_LIT:[>", <NUM_LIT:1>)[<NUM_LIT:1>].split("<STR_LIT:]>", <NUM_LIT:1>)[<NUM_LIT:0>]  <EOL><DEDENT>else:<EOL><INDENT>w_id = None<EOL><DEDENT>ignore_warning = w_id and w_id in SPACY_WARNING_IGNORE<EOL>if warn_type in SPACY_WARNING_TYPES and not ignore_warning:<EOL><INDENT>category = WARNINGS[warn_type]<EOL>stack = inspect.stack()[-<NUM_LIT:1>]<EOL>with warnings.catch_warnings():<EOL><INDENT>if SPACY_WARNING_FILTER:<EOL><INDENT>warnings.simplefilter(SPACY_WARNING_FILTER, category)<EOL><DEDENT>warnings.warn_explicit(message, category, stack[<NUM_LIT:1>], stack[<NUM_LIT:2>])<EOL><DEDENT><DEDENT>
message (unicode): The message to display.
category (Warning): The Warning to show.