code: def replace_return_docstrings(output_type=None, config_class=None):
      def docstring_decorator(fn):
          func_doc = fn.__doc__
          lines = func_doc.split("\n")
          i = 0
          while (
              i < len(lines)
              and re.search(r"^\s*Returns?:\s*$", lines[i]) is None
          ):
              i += 1
          if i < len(lines):
              indent = len(_get_indent(lines[i]))
              lines[i] = _prepare_output_docstrings(
                  output_type, config_class, min_indent=indent
              )
              func_doc = "\n".join(lines)
          else:
              raise ValueError(
                  f"The function {fn} should have an empty 'Return:' or 'Returns:' in its docstring as placeholder, "
                  f"current docstring is:\n{func_doc}"
              )
          fn.__doc__ = func_doc
          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 8 for calling a global function with example usage: replace_return_docstrings(output_type, config_class) and returns: docstring_decorator, fn