code: def deprecated_endpoints(*args):
      """Decorator for marking endpoints deprecated.
  
      This decorator does not print deprecation messages.
      TODO(annarev): eventually start printing deprecation warnings when
      @deprecation_endpoints decorator is added.
  
      Args:
        *args: Deprecated endpoint names.
  
      Returns:
        A function that takes symbol as an argument and adds
        _tf_deprecated_api_names to that symbol.
        _tf_deprecated_api_names would be set to a list of deprecated
        endpoint names for the symbol.
      """
  
      def deprecated_wrapper(func):
          # pylint: disable=protected-access
          if "_tf_deprecated_api_names" in func.__dict__:
              raise DeprecatedNamesAlreadySetError(
                  f"Cannot set deprecated names for {func.__name__} to {args}. "
                  "Deprecated names are already set to "
                  f"{func._tf_deprecated_api_names}."
              )
          func._tf_deprecated_api_names = args
          # pylint: disable=protected-access
          return func
  
      return deprecated_wrapper
  
imports: import collections
  import functools
  import inspect
  import re
  from tensorflow.python.framework import strict_mode
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import decorator_utils
  from tensorflow.python.util import is_in_graph_mode
  from tensorflow.python.util import tf_contextlib
  from tensorflow.python.util import tf_decorator
  from tensorflow.python.util import tf_inspect
  from tensorflow.tools.docs import doc_controls
label_desc: Use image node_id 10 for calling a global function with example usage: deprecated_endpoints() and returns: deprecated_wrapper, func