code: def set_docstring(header, Ainfo, footer="", atol_default="0"):
      def combine(fn):
          fn.__doc__ = "\n".join(
              (
                  header,
                  common_doc1,
                  "    " + Ainfo.replace("\n", "\n    "),
                  common_doc2,
                  footer,
              )
          )
          return fn
  
      return combine
  
file_path: catboost/contrib/python/scipy/py2/scipy/sparse/linalg/isolve/iterative.py
imports: from __future__ import division, print_function, absolute_import
  import warnings
  import numpy
  from .None import _iterative
  from scipy.sparse.linalg.interface import LinearOperator
  from .utils import make_system
  from scipy._lib._util import _aligned_zeros
  from scipy._lib._threadsafety import non_reentrant
label_desc: Use image node_id 3 for calling a global function with example usage: set_docstring(header, Ainfo, footer, atol_default) and returns: combine, fn