code: def set_deprecated(obj: T) -> T:
      """Explicitly tag an object as deprecated for the doc generator."""
      setattr(obj, _DEPRECATED, None)
      return obj
  
file_path: tensorflow-upstream/tensorflow/tools/docs/doc_controls.py
imports: from typing import Optional, TypeVar
label_desc: Use image node_id 1 for calling a global function with example usage: set_deprecated(obj) and returns: obj