code: def _add_docstring(format_dict):
      """
      Format a doc-string on the fly.
      @arg format_dict: A dictionary to format the doc-strings
      Example:
  
          @add_docstring({'context': __doc_string_context})
          def predict(x):
              '''
              {context}
              >> model.predict(data)
              '''
              return x
      """
  
      def add_docstring_context(func):
          def wrapper(*args, **kwargs):
              return func(*args, **kwargs)
  
          wrapper.__doc__ = func.__doc__.format(**format_dict)
          return wrapper
  
      return add_docstring_context
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ..data_structures.sframe import SArray
  from ..data_structures.sframe import SFrame
  from ..data_structures.sgraph import SGraph
  from ..data_structures.sgraph import Vertex
  from ..data_structures.sgraph import Edge
  from .._cython.cy_sarray import UnitySArrayProxy
  from .._cython.cy_sframe import UnitySFrameProxy
  from .._cython.cy_graph import UnityGraphProxy
  from ..toolkits._main import ToolkitError
  import json
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: _add_docstring(format_dict) and returns: add_docstring_context, wrapper, func