parameters: (func)
return_statement: return NewFunc
docstring: Mark functions as deprecated.
docstring_summary: Mark functions as deprecated.
docstring_tokens: Mark functions as deprecated .
function: def _Deprecated(func):
    """Mark functions as deprecated."""
  
    def NewFunc(*args, **kwargs):
      warnings.warn(
          'Call to deprecated function %s(). Note: Do add unlinked descriptors '
          'to descriptor_pool is wrong. Use Add() or AddSerializedFile() '
          'instead.' % func.__name__,
          category=DeprecationWarning)
      return func(*args, **kwargs)
    NewFunc.__name__ = func.__name__
    NewFunc.__doc__ = func.__doc__
    NewFunc.__dict__.update(func.__dict__)
    return NewFunc
function_tokens: def _Deprecated ( func ) : def NewFunc ( * args , * * kwargs ) : warnings . warn ( 'Call to deprecated function %s(). Note: Do add unlinked descriptors ' 'to descriptor_pool is wrong. Use Add() or AddSerializedFile() ' 'instead.' % func . __name__ , category = DeprecationWarning ) return func ( * args , * * kwargs ) NewFunc . __name__ = func . __name__ NewFunc . __doc__ = func . __doc__ NewFunc . __dict__ . update ( func . __dict__ ) return NewFunc