code: def doc_private(obj: T) -> T:
      """A decorator: Generates docs for private methods/functions.
  
      For example:
  
      ```
      class Try:
  
        @doc_controls.doc_private
        def _private(self):
          ...
      ```
  
      As a rule of thumb, private(beginning with `_`) methods/functions are
      not documented.
  
      This decorator allows to force document a private method/function.
  
      Args:
        obj: The class-attribute to hide from the generated docs.
  
      Returns:
        obj
      """
  
      setattr(obj, _DOC_PRIVATE, 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 7 for calling a global function with example usage: doc_private(obj) and returns: obj