code: def deprecated(message):
      """
      A decorator used to mark functions as deprecated.  This will cause
      a warning to be printed the when the function is used.  Usage:
  
          >>> from nltk.internals import deprecated
          >>> @deprecated('Use foo() instead')
          ... def bar(x):
          ...     print(x/10)
  
      """
  
      def decorator(func):
          msg = f"Function {func.__name__}() has been deprecated.  {message}"
          msg = "\n" + textwrap.fill(
              msg, initial_indent="  ", subsequent_indent="  "
          )
  
          def newFunc(*args, **kwargs):
              warnings.warn(
                  msg, category=DeprecationWarning, stacklevel=2
              )
              return func(*args, **kwargs)
  
          # Copy the old function's name, docstring, & dict
          newFunc.__dict__.update(func.__dict__)
          newFunc.__name__ = func.__name__
          newFunc.__doc__ = func.__doc__
          newFunc.__deprecated__ = True
          # Add a @deprecated field to the docstring.
          _add_epytext_field(newFunc, "deprecated", message)
          return newFunc
  
      return decorator
  
imports: import fnmatch
  import locale
  import os
  import re
  import stat
  import subprocess
  import sys
  import textwrap
  import types
  import warnings
  from xml.etree import ElementTree
label_desc: Use image node_id 9 for calling a global function with example usage: deprecated(message) and returns: decorator, newFunc, func