code: def templated_docstring(**docs):
      """
      Decorator allowing the use of templated docstrings.
  
      Examples
      --------
      >>> @templated_docstring(foo='bar')
      ... def my_func(self, foo):
      ...     '''{foo}'''
      ...
      >>> my_func.__doc__
      'bar'
      """
  
      def decorator(f):
          f.__doc__ = format_docstring(f.__name__, f.__doc__, docs)
          return f
  
      return decorator
  
file_path: catalyst/catalyst/utils/sharedoc.py
imports: import re
  from six import iteritems
  from textwrap import dedent
  from toolz import curry
label_desc: Use image node_id 3 for calling a global function with example usage: templated_docstring() and returns: decorator, f