code: def add_start_docstrings_to_model_forward(*docstr):
      def docstring_decorator(fn):
          docstring = "".join(docstr) + (
              fn.__doc__ if fn.__doc__ is not None else ""
          )
          class_name = f"[`{fn.__qualname__.split('.')[0]}`]"
          intro = f"   The {class_name} forward method, overrides the `__call__` special method."
          note = r"""
  
      <Tip>
  
      Although the recipe for forward pass needs to be defined within this function, one should call the [`Module`]
      instance afterwards instead of this since the former takes care of running the pre and post processing steps while
      the latter silently ignores them.
  
      </Tip>
  """
  
          fn.__doc__ = intro + note + docstring
          return fn
  
      return docstring_decorator
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/src/transformers/utils/doc.py
imports: import functools
  import re
  import types
label_desc: Use image node_id 2 for calling a global function with example usage: add_start_docstrings_to_model_forward() and returns: docstring_decorator, fn